compat-wireless: fix patches/38-led-max-brightness.patch
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Nov 2011 21:45:19 +0000 (16:45 -0500)
committerLuis R. Rodriguez <mcgrof@qca.qualcomm.com>
Wed, 30 Nov 2011 02:57:29 +0000 (21:57 -0500)
More fall-out from the refactoring of iwlegacy...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
patches/38-led-max-brightness.patch

index 64ecc9ce545b58bac3af3312446822636f3fb671..c34d97961db5326fb5b058ae0c3e11313fa1b795 100644 (file)
@@ -1,18 +1,18 @@
---- a/drivers/net/wireless/iwlegacy/iwl-led.c
-+++ b/drivers/net/wireless/iwlegacy/iwl-led.c
-@@ -166,7 +166,9 @@ void iwl_legacy_leds_init(struct iwl_pri
-                                  wiphy_name(priv->hw->wiphy));
-       priv->led.brightness_set = iwl_legacy_led_brightness_set;
-       priv->led.blink_set = iwl_legacy_led_blink_set;
+--- a/drivers/net/wireless/iwlegacy/common.c
++++ b/drivers/net/wireless/iwlegacy/common.c
+@@ -402,7 +402,9 @@ il_leds_init(struct il_priv *il)
+           kasprintf(GFP_KERNEL, "%s-led", wiphy_name(il->hw->wiphy));
+       il->led.brightness_set = il_led_brightness_set;
+       il->led.blink_set = il_led_blink_set;
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
-       priv->led.max_brightness = 1;
+       il->led.max_brightness = 1;
 +#endif
  
        switch (mode) {
-       case IWL_LED_DEFAULT:
+       case IL_LED_DEFAULT:
 --- a/drivers/net/wireless/iwlwifi/iwl-led.c
 +++ b/drivers/net/wireless/iwlwifi/iwl-led.c
-@@ -184,7 +184,9 @@ void iwl_leds_init(struct iwl_priv *priv
+@@ -184,7 +184,9 @@ void iwl_leds_init(struct iwl_priv *priv)
                                   wiphy_name(priv->hw->wiphy));
        priv->led.brightness_set = iwl_led_brightness_set;
        priv->led.blink_set = iwl_led_blink_set;