| 1 |
/* SPDX-License-Identifier: ISC */ |
| 2 |
/* |
| 3 |
* Copyright (c) 2005-2011 Atheros Communications Inc. |
| 4 |
* Copyright (c) 2011-2017 Qualcomm Atheros, Inc. |
| 5 |
* Copyright (c) 2018 Sebastian Gottschall <[email protected]> |
| 6 |
* Copyright (c) 2018 The Linux Foundation. All rights reserved. |
| 7 |
*/ |
| 8 |
|
| 9 |
#ifndef _LEDS_H_ |
| 10 |
#define _LEDS_H_ |
| 11 |
|
| 12 |
#include "core.h" |
| 13 |
|
| 14 |
#ifdef CONFIG_ATH10K_LEDS |
| 15 |
void ath10k_leds_unregister(struct ath10k *ar); |
| 16 |
int ath10k_leds_start(struct ath10k *ar); |
| 17 |
int ath10k_leds_register(struct ath10k *ar); |
| 18 |
#else |
| 19 |
static inline void ath10k_leds_unregister(struct ath10k *ar) |
| 20 |
{ |
| 21 |
} |
| 22 |
|
| 23 |
static inline int ath10k_leds_start(struct ath10k *ar) |
| 24 |
{ |
| 25 |
return 0; |
| 26 |
} |
| 27 |
|
| 28 |
static inline int ath10k_leds_register(struct ath10k *ar) |
| 29 |
{ |
| 30 |
return 0; |
| 31 |
} |
| 32 |
|
| 33 |
#endif |
| 34 |
#endif /* _LEDS_H_ */ |