diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2010-02-10 13:26:05 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2010-02-11 11:40:29 +0100 |
commit | 3d74b70a416ce424d55659d77df7b1eb17f56de7 (patch) | |
tree | 2a43a199cb4c7acbeab52b6e308f40a6c6d65544 /recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch | |
parent | 0128a20973f6dc22bbb180b6b4736c3bbf390890 (diff) |
linux-openmoko-2.6.32: bump revision and update gdrm-2.6.32 patches
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch')
-rw-r--r-- | recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch b/recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch new file mode 100644 index 0000000000..744004e7b1 --- /dev/null +++ b/recipes/linux/linux-openmoko-2.6.32/0005-Add-JBT6k74-hook-for-use-by-KMS.patch @@ -0,0 +1,49 @@ +From 972c0a58e9e238c266adc77c88dcd8de6f123742 Mon Sep 17 00:00:00 2001 +From: Thomas White <taw@bitwiz.org.uk> +Date: Sat, 21 Nov 2009 21:42:16 +0100 +Subject: [PATCH 5/9] Add JBT6k74 hook for use by KMS + +Signed-off-by: Thomas White <taw@bitwiz.org.uk> +--- + drivers/video/backlight/jbt6k74.c | 18 ++++++++++++++++++ + 1 files changed, 18 insertions(+), 0 deletions(-) + +diff --git a/drivers/video/backlight/jbt6k74.c b/drivers/video/backlight/jbt6k74.c +index 8450904..95ca4cf 100644 +--- a/drivers/video/backlight/jbt6k74.c ++++ b/drivers/video/backlight/jbt6k74.c +@@ -698,6 +698,22 @@ static int jbt6k74_get_power(struct lcd_device *ld) + } + } + ++/* This is utterly, totally horrible. I'm REALLY sorry... */ ++struct jbt_info *jbt_global; ++void jbt6k74_action(int val) ++{ ++ if ( !jbt_global ) { ++ printk(KERN_CRIT "JBT not initialised!!!\n"); ++ return; ++ } ++ if ( val == 0 ) { ++ jbt6k74_enter_power_mode(jbt_global, JBT_POWER_MODE_SLEEP); ++ } else { ++ jbt6k74_enter_power_mode(jbt_global, JBT_POWER_MODE_NORMAL); ++ } ++} ++EXPORT_SYMBOL_GPL(jbt6k74_action); ++ + struct lcd_ops jbt6k74_lcd_ops = { + .set_power = jbt6k74_set_power, + .get_power = jbt6k74_get_power, +@@ -728,6 +744,8 @@ static int __devinit jbt_probe(struct spi_device *spi) + if (!jbt) + return -ENOMEM; + ++ jbt_global = jbt; ++ + jbt->spi = spi; + + jbt->lcd_dev = lcd_device_register("jbt6k74-lcd", &spi->dev, jbt, +-- +1.6.6.1 + |