diff options
author | mb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-05 16:59:39 +0000 |
---|---|---|
committer | mb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-11-05 16:59:39 +0000 |
commit | 101bcffa4f181122120ee1d86b8711dadb30a440 (patch) | |
tree | 7f4f77052c8b9451835bb0094d166759517d8006 /target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch | |
parent | 2c7af0d7c7e35115465f49ba420cae05879149a9 (diff) |
omap24xx: Add linux 2.6.37 config/patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23888 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch')
-rw-r--r-- | target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch b/target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch new file mode 100644 index 0000000000..4c4b0a1549 --- /dev/null +++ b/target/linux/omap24xx/patches-2.6.37/820-backlight-fixes.patch @@ -0,0 +1,35 @@ +--- + arch/arm/mach-omap2/board-n8x0-lcd.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +Index: linux-2.6.37-rc1/arch/arm/mach-omap2/board-n8x0-lcd.c +=================================================================== +--- linux-2.6.37-rc1.orig/arch/arm/mach-omap2/board-n8x0-lcd.c 2010-11-05 17:02:04.318000134 +0100 ++++ linux-2.6.37-rc1/arch/arm/mach-omap2/board-n8x0-lcd.c 2010-11-05 17:07:32.261000002 +0100 +@@ -34,8 +34,26 @@ + } + } + ++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) |