Path: blob/main/sys/contrib/dev/broadcom/brcm80211/brcmsmac/led.h
178665 views
/*1* Copyright (c) 2012 Broadcom Corporation2*3* Permission to use, copy, modify, and/or distribute this software for any4* purpose with or without fee is hereby granted, provided that the above5* copyright notice and this permission notice appear in all copies.6*7* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES8* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF9* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY10* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES11* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION12* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN13* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.14*/1516#ifndef _BRCM_LED_H_17#define _BRCM_LED_H_1819struct gpio_desc;2021struct brcms_led {22char name[32];23struct gpio_desc *gpiod;24};2526#ifdef CONFIG_BRCMSMAC_LEDS27void brcms_led_unregister(struct brcms_info *wl);28int brcms_led_register(struct brcms_info *wl);29#else30static inline void brcms_led_unregister(struct brcms_info *wl) {};31static inline int brcms_led_register(struct brcms_info *wl)32{33return -ENOTSUPP;34};35#endif3637#endif /* _BRCM_LED_H_ */383940