mac80211: ath9k: enable platform WLAN LED name
Enable platform-supplied WLAN LED name for ath9k device. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> Acked-by: Hartmut Knaack <knaack.h@gmx.de> SVN-Revision: 48879
This commit is contained in:
@@ -39,6 +39,18 @@ __init void ap9x_pci_setup_wmac_led_pin(unsigned wmac, int pin)
|
||||
}
|
||||
}
|
||||
|
||||
__init void ap9x_pci_setup_wmac_led_name(unsigned wmac, const char *led_name)
|
||||
{
|
||||
switch (wmac) {
|
||||
case 0:
|
||||
ap9x_wmac0_data.led_name = led_name;
|
||||
break;
|
||||
case 1:
|
||||
ap9x_wmac1_data.led_name = led_name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
__init struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac)
|
||||
{
|
||||
switch (wmac) {
|
||||
|
||||
@@ -19,6 +19,7 @@ void ap9x_pci_setup_wmac_led_pin(unsigned wmac, int pin);
|
||||
void ap9x_pci_setup_wmac_gpio(unsigned wmac, u32 mask, u32 val);
|
||||
void ap9x_pci_setup_wmac_leds(unsigned wmac, struct gpio_led *leds,
|
||||
int num_leds);
|
||||
void ap9x_pci_setup_wmac_led_name(unsigned wmac, const char *led_name);
|
||||
struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac);
|
||||
|
||||
void ap91_pci_init(u8 *cal_data, u8 *mac_addr);
|
||||
@@ -33,6 +34,8 @@ static inline void ap9x_pci_setup_wmac_gpio(unsigned wmac,
|
||||
static inline void ap9x_pci_setup_wmac_leds(unsigned wmac,
|
||||
struct gpio_led *leds,
|
||||
int num_leds) {}
|
||||
static inline void ap9x_pci_setup_wmac_led_name(unsigned wmac,
|
||||
const char *led_name) {}
|
||||
static inline struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac)
|
||||
{
|
||||
return NULL;
|
||||
|
||||
@@ -45,6 +45,7 @@ struct ath9k_platform_data {
|
||||
|
||||
int num_leds;
|
||||
const struct gpio_led *leds;
|
||||
const char *led_name;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_ATH9K_PLATFORM_H */
|
||||
|
||||
Reference in New Issue
Block a user