summaryrefslogtreecommitdiff
path: root/packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-12 08:29:28 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-12 08:29:28 +0000
commit37162ccfcde5eadef9635a14219df25aae5456e7 (patch)
tree94a22eeb6934e3228aa7de00554a4b97613d8168 /packages/linux/linux-2.6.18/ltv350qv-add-initial_power_state-param.patch
parent76eaaa7854736d16fa4377ea930e34acf0c4a997 (diff)
linux-2.6.18: add avr32 patches, courtes Stelios Koroneos
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.patch25
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);
+