diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-04-11 01:45:20 +0000 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-04-17 16:23:08 -0700 |
commit | be4a0f9ad7e17670d7a30c9e94d5dd918425f90a (patch) | |
tree | e357fbef6a8bd452136a59c59a0b654d666d38a8 /patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch | |
parent | 0429914b5f1cb02830dbc4200d615abd9b3f2f7c (diff) |
backports: nuke support for kernels < 3.0
mcgrof@drvbp1 ~/backports (git::master)$ time ./gentree.py --clean
/home/mcgrof/linux-next /home/mcgrof/build/next-20140409
Copy original source files ...
Apply patches ...
Modify Kconfig tree ...
Rewrite Makefiles and Kconfig files ...
Done!
real 1m30.186s
user 9m25.180s
sys 0m24.428s
mcgrof@drvbp1 ~/build/next-20140409 $ time ckmake --allyesconfig
1 3.0.101 [ OK ]
2 3.1.10 [ OK ]
3 3.2.54 [ OK ]
4 3.3.8 [ OK ]
5 3.4.79 [ OK ]
6 3.5.7 [ OK ]
7 3.6.11 [ OK ]
8 3.7.10 [ OK ]
9 3.8.13 [ OK ]
10 3.9.11 [ OK ]
11 3.10.29 [ OK ]
12 3.11.10 [ OK ]
13 3.12.10 [ OK ]
14 3.13.2 [ OK ]
15 3.14-rc1 [ OK ]
real 26m54.859s
user 744m15.764s
sys 83m47.440s
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch')
-rw-r--r-- | patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch b/patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch new file mode 100644 index 00000000..4732392b --- /dev/null +++ b/patches/0000-upstream-backport-changes/0003-technisat-usb2-led-rename.patch @@ -0,0 +1,83 @@ +This clashes with include/linux/leds.h namespace, fix this and +also send this upstream eventually. + +--- a/drivers/media/usb/dvb-usb/technisat-usb2.c ++++ b/drivers/media/usb/dvb-usb/technisat-usb2.c +@@ -214,10 +214,10 @@ static void technisat_usb2_frontend_rese + + /* LED control */ + enum technisat_usb2_led_state { +- LED_OFF, +- LED_BLINK, +- LED_ON, +- LED_UNDEFINED ++ TECH_LED_OFF, ++ TECH_LED_BLINK, ++ TECH_LED_ON, ++ TECH_LED_UNDEFINED + }; + + static int technisat_usb2_set_led(struct dvb_usb_device *d, int red, enum technisat_usb2_led_state state) +@@ -229,14 +229,14 @@ static int technisat_usb2_set_led(struct + 0 + }; + +- if (disable_led_control && state != LED_OFF) ++ if (disable_led_control && state != TECH_LED_OFF) + return 0; + + switch (state) { +- case LED_ON: ++ case TECH_LED_ON: + led[1] = 0x82; + break; +- case LED_BLINK: ++ case TECH_LED_BLINK: + led[1] = 0x82; + if (red) { + led[2] = 0x02; +@@ -251,7 +251,7 @@ static int technisat_usb2_set_led(struct + break; + + default: +- case LED_OFF: ++ case TECH_LED_OFF: + led[1] = 0x80; + break; + } +@@ -310,11 +310,11 @@ static void technisat_usb2_green_led_con + goto schedule; + + if (ber > 1000) +- technisat_usb2_set_led(state->dev, 0, LED_BLINK); ++ technisat_usb2_set_led(state->dev, 0, TECH_LED_BLINK); + else +- technisat_usb2_set_led(state->dev, 0, LED_ON); ++ technisat_usb2_set_led(state->dev, 0, TECH_LED_ON); + } else +- technisat_usb2_set_led(state->dev, 0, LED_OFF); ++ technisat_usb2_set_led(state->dev, 0, TECH_LED_OFF); + } + + schedule: +@@ -365,9 +365,9 @@ static int technisat_usb2_power_ctrl(str + return 0; + + /* green led is turned off in any case - will be turned on when tuning */ +- technisat_usb2_set_led(d, 0, LED_OFF); ++ technisat_usb2_set_led(d, 0, TECH_LED_OFF); + /* red led is turned on all the time */ +- technisat_usb2_set_led(d, 1, LED_ON); ++ technisat_usb2_set_led(d, 1, TECH_LED_ON); + return 0; + } + +@@ -667,7 +667,7 @@ static int technisat_usb2_rc_query(struc + return 0; + + if (!disable_led_control) +- technisat_usb2_set_led(d, 1, LED_BLINK); ++ technisat_usb2_set_led(d, 1, TECH_LED_BLINK); + + return 0; + } |