1*b4c3e9b5SBjoern A. Zeeb /*
2*b4c3e9b5SBjoern A. Zeeb * Copyright (c) 2012 Broadcom Corporation
3*b4c3e9b5SBjoern A. Zeeb *
4*b4c3e9b5SBjoern A. Zeeb * Permission to use, copy, modify, and/or distribute this software for any
5*b4c3e9b5SBjoern A. Zeeb * purpose with or without fee is hereby granted, provided that the above
6*b4c3e9b5SBjoern A. Zeeb * copyright notice and this permission notice appear in all copies.
7*b4c3e9b5SBjoern A. Zeeb *
8*b4c3e9b5SBjoern A. Zeeb * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*b4c3e9b5SBjoern A. Zeeb * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*b4c3e9b5SBjoern A. Zeeb * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11*b4c3e9b5SBjoern A. Zeeb * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*b4c3e9b5SBjoern A. Zeeb * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13*b4c3e9b5SBjoern A. Zeeb * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14*b4c3e9b5SBjoern A. Zeeb * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*b4c3e9b5SBjoern A. Zeeb */
16*b4c3e9b5SBjoern A. Zeeb
17*b4c3e9b5SBjoern A. Zeeb #ifndef _BRCM_LED_H_
18*b4c3e9b5SBjoern A. Zeeb #define _BRCM_LED_H_
19*b4c3e9b5SBjoern A. Zeeb
20*b4c3e9b5SBjoern A. Zeeb struct gpio_desc;
21*b4c3e9b5SBjoern A. Zeeb
22*b4c3e9b5SBjoern A. Zeeb struct brcms_led {
23*b4c3e9b5SBjoern A. Zeeb char name[32];
24*b4c3e9b5SBjoern A. Zeeb struct gpio_desc *gpiod;
25*b4c3e9b5SBjoern A. Zeeb };
26*b4c3e9b5SBjoern A. Zeeb
27*b4c3e9b5SBjoern A. Zeeb #ifdef CONFIG_BRCMSMAC_LEDS
28*b4c3e9b5SBjoern A. Zeeb void brcms_led_unregister(struct brcms_info *wl);
29*b4c3e9b5SBjoern A. Zeeb int brcms_led_register(struct brcms_info *wl);
30*b4c3e9b5SBjoern A. Zeeb #else
brcms_led_unregister(struct brcms_info * wl)31*b4c3e9b5SBjoern A. Zeeb static inline void brcms_led_unregister(struct brcms_info *wl) {};
brcms_led_register(struct brcms_info * wl)32*b4c3e9b5SBjoern A. Zeeb static inline int brcms_led_register(struct brcms_info *wl)
33*b4c3e9b5SBjoern A. Zeeb {
34*b4c3e9b5SBjoern A. Zeeb return -ENOTSUPP;
35*b4c3e9b5SBjoern A. Zeeb };
36*b4c3e9b5SBjoern A. Zeeb #endif
37*b4c3e9b5SBjoern A. Zeeb
38*b4c3e9b5SBjoern A. Zeeb #endif /* _BRCM_LED_H_ */
39