omap24xx: Add 3.1 patchset.
[openwrt.git] / target / linux / omap24xx / patches-3.1 / 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-3.1-rc4/arch/arm/mach-omap2/board-n8x0-lcd.c
6 ===================================================================
7 --- linux-3.1-rc4.orig/arch/arm/mach-omap2/board-n8x0-lcd.c     2011-10-28 00:24:34.306789772 +0200
8 +++ linux-3.1-rc4/arch/arm/mach-omap2/board-n8x0-lcd.c  2011-10-28 00:25:32.314559457 +0200
9 @@ -34,8 +34,28 @@ static void mipid_shutdown(struct mipid_
10         }
11  }
12  
13 +static int n8x0_get_backlight_level(struct mipid_platform_data *pdata)
14 +{
15 +//FIXME        return tahvo_get_backlight_level();
16 +return 0;
17 +}
18 +
19 +static int n8x0_get_max_backlight_level(struct mipid_platform_data *pdata)
20 +{
21 +//FIXME        return tahvo_get_max_backlight_level();
22 +return 0;
23 +}
24 +
25 +static void n8x0_set_backlight_level(struct mipid_platform_data *pdata, int level)
26 +{
27 +//FIXME        tahvo_set_backlight_level(level);
28 +}
29 +
30  struct mipid_platform_data n8x0_mipid_platform_data = {
31         .shutdown = mipid_shutdown,
32 +       .get_bklight_level = n8x0_get_backlight_level,
33 +       .set_bklight_level = n8x0_set_backlight_level,
34 +       .get_bklight_max = n8x0_get_max_backlight_level,
35  };
36  
37  void __init n8x0_mipid_init(void)