summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-13 16:14:02 +0000
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-13 16:14:02 +0000
commit503f946c66c81e31a81422b6c0a4ff646abaf2e0 (patch)
treec612af724a627da635b14cd261e9ab263883f1be /target/linux
parent547bbf9b6ecdee816185820a4c43bc3be8ab6f7d (diff)
n810: Make sysfs backlight controls work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22623 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/omap24xx/patches-2.6.35/820-backlight-fixes.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.35/820-backlight-fixes.patch b/target/linux/omap24xx/patches-2.6.35/820-backlight-fixes.patch
new file mode 100644
index 000000000..6d69a37eb
--- /dev/null
+++ b/target/linux/omap24xx/patches-2.6.35/820-backlight-fixes.patch
@@ -0,0 +1,33 @@
+---
+ arch/arm/mach-omap2/board-n8x0-lcd.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+--- linux-2.6.35.orig/arch/arm/mach-omap2/board-n8x0-lcd.c
++++ linux-2.6.35/arch/arm/mach-omap2/board-n8x0-lcd.c
+@@ -34,8 +34,26 @@ static void mipid_shutdown(struct mipid_
+ }
+ }
+
++static int n8x0_get_backlight_level(struct mipid_platform_data *pdata)
++{
++ return tahvo_get_backlight_level();
++}
++
++static int n8x0_get_max_backlight_level(struct mipid_platform_data *pdata)
++{
++ return tahvo_get_max_backlight_level();
++}
++
++static void n8x0_set_backlight_level(struct mipid_platform_data *pdata, int level)
++{
++ tahvo_set_backlight_level(level);
++}
++
+ struct mipid_platform_data n8x0_mipid_platform_data = {
+ .shutdown = mipid_shutdown,
++ .get_bklight_level = n8x0_get_backlight_level,
++ .set_bklight_level = n8x0_set_backlight_level,
++ .get_bklight_max = n8x0_get_max_backlight_level,
+ };
+
+ void __init n8x0_mipid_init(void)