18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (c) 2012 Broadcom Corporation 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Permission to use, copy, modify, and/or distribute this software for any 58c2ecf20Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above 68c2ecf20Sopenharmony_ci * copyright notice and this permission notice appear in all copies. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 98c2ecf20Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 108c2ecf20Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY 118c2ecf20Sopenharmony_ci * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 128c2ecf20Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 138c2ecf20Sopenharmony_ci * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 148c2ecf20Sopenharmony_ci * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#ifndef _BRCM_LED_H_ 188c2ecf20Sopenharmony_ci#define _BRCM_LED_H_ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistruct gpio_desc; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_cistruct brcms_led { 238c2ecf20Sopenharmony_ci char name[32]; 248c2ecf20Sopenharmony_ci struct gpio_desc *gpiod; 258c2ecf20Sopenharmony_ci}; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#ifdef CONFIG_BCMA_DRIVER_GPIO 288c2ecf20Sopenharmony_civoid brcms_led_unregister(struct brcms_info *wl); 298c2ecf20Sopenharmony_ciint brcms_led_register(struct brcms_info *wl); 308c2ecf20Sopenharmony_ci#else 318c2ecf20Sopenharmony_cistatic inline void brcms_led_unregister(struct brcms_info *wl) {}; 328c2ecf20Sopenharmony_cistatic inline int brcms_led_register(struct brcms_info *wl) 338c2ecf20Sopenharmony_ci{ 348c2ecf20Sopenharmony_ci return -ENOTSUPP; 358c2ecf20Sopenharmony_ci}; 368c2ecf20Sopenharmony_ci#endif 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#endif /* _BRCM_LED_H_ */ 39