ar71xx: add support for TL-WR740N v1
[openwrt.git] / target / linux / omap24xx / patches-2.6.37 / 820-backlight-fixes.patch
1 ---
2 arch/arm/mach-omap2/board-n8x0-lcd.c | 18 ++++++++++++++++++
3 1 file changed, 18 insertions(+)
4
5 Index: linux-2.6.37-rc1/arch/arm/mach-omap2/board-n8x0-lcd.c
6 ===================================================================
7 --- linux-2.6.37-rc1.orig/arch/arm/mach-omap2/board-n8x0-lcd.c 2010-11-05 17:02:04.318000134 +0100
8 +++ linux-2.6.37-rc1/arch/arm/mach-omap2/board-n8x0-lcd.c 2010-11-05 17:07:32.261000002 +0100
9 @@ -34,8 +34,26 @@
10 }
11 }
12
13 +static int n8x0_get_backlight_level(struct mipid_platform_data *pdata)
14 +{
15 + return tahvo_get_backlight_level();
16 +}
17 +
18 +static int n8x0_get_max_backlight_level(struct mipid_platform_data *pdata)
19 +{
20 + return tahvo_get_max_backlight_level();
21 +}
22 +
23 +static void n8x0_set_backlight_level(struct mipid_platform_data *pdata, int level)
24 +{
25 + tahvo_set_backlight_level(level);
26 +}
27 +
28 struct mipid_platform_data n8x0_mipid_platform_data = {
29 .shutdown = mipid_shutdown,
30 + .get_bklight_level = n8x0_get_backlight_level,
31 + .set_bklight_level = n8x0_set_backlight_level,
32 + .get_bklight_max = n8x0_get_max_backlight_level,
33 };
34
35 void __init n8x0_mipid_init(void)
This page took 0.047772 seconds and 5 git commands to generate.