omap24xx: Fix missing symbols for mac80211
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 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.38-rc6/arch/arm/mach-omap2/board-n8x0-lcd.c
6 ===================================================================
7 --- linux-2.6.38-rc6.orig/arch/arm/mach-omap2/board-n8x0-lcd.c  2011-02-24 12:37:51.702386250 +0100
8 +++ linux-2.6.38-rc6/arch/arm/mach-omap2/board-n8x0-lcd.c       2011-02-24 12:39:35.223028410 +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)