Move zd1211rw LED name changes to 09-zd1211rw-led.patch
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 4 Aug 2009 20:49:44 +0000 (13:49 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 4 Aug 2009 20:49:44 +0000 (13:49 -0700)
We'll send this upstream and then remove these hunks.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat.diff
compat/diffs/09-zd1211rw-led.patch [new file with mode: 0644]

index 902eb4f0692ab5febc69cbdb4d3d1fd5eb55ed28..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,58 +0,0 @@
---- a/drivers/net/wireless/zd1211rw/zd_chip.h  2009-07-06 16:09:14.934197004 -0700
-+++ b/drivers/net/wireless/zd1211rw/zd_chip.h  2009-07-06 16:10:01.570226234 -0700
-@@ -897,9 +897,9 @@
- int zd_chip_unlock_phy_regs(struct zd_chip *chip);
- enum led_status {
--      LED_OFF = 0,
--      LED_SCANNING = 1,
--      LED_ASSOCIATED = 2,
-+      ZD_LED_OFF = 0,
-+      ZD_LED_SCANNING = 1,
-+      ZD_LED_ASSOCIATED = 2,
- };
- int zd_chip_control_leds(struct zd_chip *chip, enum led_status status);
---- a/drivers/net/wireless/zd1211rw/zd_chip.c  2009-07-06 16:09:24.986198445 -0700
-+++ b/drivers/net/wireless/zd1211rw/zd_chip.c  2009-07-06 16:10:19.898624742 -0700
-@@ -1278,11 +1278,11 @@
-       other_led = chip->link_led == LED1 ? LED2 : LED1;
-       switch (status) {
--      case LED_OFF:
-+      case ZD_LED_OFF:
-               ioreqs[0].value = FW_LINK_OFF;
-               ioreqs[1].value = v[1] & ~(LED1|LED2);
-               break;
--      case LED_SCANNING:
-+      case ZD_LED_SCANNING:
-               ioreqs[0].value = FW_LINK_OFF;
-               ioreqs[1].value = v[1] & ~other_led;
-               if (get_seconds() % 3 == 0) {
-@@ -1291,7 +1291,7 @@
-                       ioreqs[1].value |= chip->link_led;
-               }
-               break;
--      case LED_ASSOCIATED:
-+      case ZD_LED_ASSOCIATED:
-               ioreqs[0].value = FW_LINK_TX;
-               ioreqs[1].value = v[1] & ~other_led;
-               ioreqs[1].value |= chip->link_led;
---- a/drivers/net/wireless/zd1211rw/zd_mac.c   2009-07-06 16:09:30.382198435 -0700
-+++ b/drivers/net/wireless/zd1211rw/zd_mac.c   2009-07-06 16:11:36.778629948 -0700
-@@ -1013,7 +1013,7 @@
-       spin_unlock_irq(&mac->lock);
-       r = zd_chip_control_leds(chip,
--                               is_associated ? LED_ASSOCIATED : LED_SCANNING);
-+                               is_associated ? ZD_LED_ASSOCIATED : ZD_LED_SCANNING);
-       if (r)
-               dev_dbg_f(zd_mac_dev(mac), "zd_chip_control_leds error %d\n", r);
-@@ -1038,5 +1038,5 @@
-       dev_dbg_f(zd_mac_dev(mac), "\n");
-       cancel_rearming_delayed_workqueue(zd_workqueue,
-               &mac->housekeeping.link_led_work);
--      zd_chip_control_leds(&mac->chip, LED_OFF);
-+      zd_chip_control_leds(&mac->chip, ZD_LED_OFF);
- }
diff --git a/compat/diffs/09-zd1211rw-led.patch b/compat/diffs/09-zd1211rw-led.patch
new file mode 100644 (file)
index 0000000..902eb4f
--- /dev/null
@@ -0,0 +1,58 @@
+--- a/drivers/net/wireless/zd1211rw/zd_chip.h  2009-07-06 16:09:14.934197004 -0700
++++ b/drivers/net/wireless/zd1211rw/zd_chip.h  2009-07-06 16:10:01.570226234 -0700
+@@ -897,9 +897,9 @@
+ int zd_chip_unlock_phy_regs(struct zd_chip *chip);
+ enum led_status {
+-      LED_OFF = 0,
+-      LED_SCANNING = 1,
+-      LED_ASSOCIATED = 2,
++      ZD_LED_OFF = 0,
++      ZD_LED_SCANNING = 1,
++      ZD_LED_ASSOCIATED = 2,
+ };
+ int zd_chip_control_leds(struct zd_chip *chip, enum led_status status);
+--- a/drivers/net/wireless/zd1211rw/zd_chip.c  2009-07-06 16:09:24.986198445 -0700
++++ b/drivers/net/wireless/zd1211rw/zd_chip.c  2009-07-06 16:10:19.898624742 -0700
+@@ -1278,11 +1278,11 @@
+       other_led = chip->link_led == LED1 ? LED2 : LED1;
+       switch (status) {
+-      case LED_OFF:
++      case ZD_LED_OFF:
+               ioreqs[0].value = FW_LINK_OFF;
+               ioreqs[1].value = v[1] & ~(LED1|LED2);
+               break;
+-      case LED_SCANNING:
++      case ZD_LED_SCANNING:
+               ioreqs[0].value = FW_LINK_OFF;
+               ioreqs[1].value = v[1] & ~other_led;
+               if (get_seconds() % 3 == 0) {
+@@ -1291,7 +1291,7 @@
+                       ioreqs[1].value |= chip->link_led;
+               }
+               break;
+-      case LED_ASSOCIATED:
++      case ZD_LED_ASSOCIATED:
+               ioreqs[0].value = FW_LINK_TX;
+               ioreqs[1].value = v[1] & ~other_led;
+               ioreqs[1].value |= chip->link_led;
+--- a/drivers/net/wireless/zd1211rw/zd_mac.c   2009-07-06 16:09:30.382198435 -0700
++++ b/drivers/net/wireless/zd1211rw/zd_mac.c   2009-07-06 16:11:36.778629948 -0700
+@@ -1013,7 +1013,7 @@
+       spin_unlock_irq(&mac->lock);
+       r = zd_chip_control_leds(chip,
+-                               is_associated ? LED_ASSOCIATED : LED_SCANNING);
++                               is_associated ? ZD_LED_ASSOCIATED : ZD_LED_SCANNING);
+       if (r)
+               dev_dbg_f(zd_mac_dev(mac), "zd_chip_control_leds error %d\n", r);
+@@ -1038,5 +1038,5 @@
+       dev_dbg_f(zd_mac_dev(mac), "\n");
+       cancel_rearming_delayed_workqueue(zd_workqueue,
+               &mac->housekeeping.link_led_work);
+-      zd_chip_control_leds(&mac->chip, LED_OFF);
++      zd_chip_control_leds(&mac->chip, ZD_LED_OFF);
+ }