diff options
| author | Koen Kooi <koen@openembedded.org> | 2007-09-14 07:43:03 +0000 |
|---|---|---|
| committer | Koen Kooi <koen@openembedded.org> | 2007-09-14 07:43:03 +0000 |
| commit | 2019b37bac10cff32469452eb3061e6e8e8aaad4 (patch) | |
| tree | 79aa76f03f001988977386a9c13e59cebfe7c57b /packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch | |
| parent | 7a5c873a58cdc4130eb4a14c5af0960f8ec6d81a (diff) | |
| parent | a50f3c05fc84d7d914e6a8287c82581462302bbe (diff) | |
propagate from branch 'org.openembedded.dev' (head bbdff51149f19a443ea4c897e2b4eb81eec6283a)
to branch 'org.openembedded.dev.avr32' (head ef59785d9aa6d25f6cf33266a65b61426e620f71)
Diffstat (limited to 'packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch')
| -rw-r--r-- | packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch b/packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch new file mode 100644 index 0000000000..a877b0ea37 --- /dev/null +++ b/packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch @@ -0,0 +1,25 @@ +Index: linux-2.6.18/drivers/video/backlight/ltv350qv.c +=================================================================== +--- linux-2.6.18.orig/drivers/video/backlight/ltv350qv.c 2007-01-11 14:55:39.000000000 +0100 ++++ linux-2.6.18/drivers/video/backlight/ltv350qv.c 2007-01-11 14:59:23.000000000 +0100 +@@ -19,6 +19,11 @@ + + #define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL) + ++static int initial_power_state = FB_BLANK_POWERDOWN; ++ ++module_param(initial_power_state, int, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); ++MODULE_PARM_DESC(initial_power_state, "Set initial power state of LCD"); ++ + struct ltv350qv { + struct spi_device *spi; + u8 *buffer; +@@ -178,7 +183,7 @@ + return -ENOMEM; + + lcd->spi = spi; +- lcd->power = FB_BLANK_POWERDOWN; ++ lcd->power = initial_power_state; + init_MUTEX(&lcd->lock); + lcd->buffer = kzalloc(8, GFP_KERNEL); + |
