generic: ar8216: move ar8216_id_chip function
[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 --- a/arch/arm/mach-omap2/board-n8x0-lcd.c
6 +++ b/arch/arm/mach-omap2/board-n8x0-lcd.c
7 @@ -34,8 +34,26 @@ static void mipid_shutdown(struct mipid_
8 }
9 }
10
11 +static int n8x0_get_backlight_level(struct mipid_platform_data *pdata)
12 +{
13 + return tahvo_get_backlight_level();
14 +}
15 +
16 +static int n8x0_get_max_backlight_level(struct mipid_platform_data *pdata)
17 +{
18 + return tahvo_get_max_backlight_level();
19 +}
20 +
21 +static void n8x0_set_backlight_level(struct mipid_platform_data *pdata, int level)
22 +{
23 + tahvo_set_backlight_level(level);
24 +}
25 +
26 struct mipid_platform_data n8x0_mipid_platform_data = {
27 .shutdown = mipid_shutdown,
28 + .get_bklight_level = n8x0_get_backlight_level,
29 + .set_bklight_level = n8x0_set_backlight_level,
30 + .get_bklight_max = n8x0_get_max_backlight_level,
31 };
32
33 void __init n8x0_mipid_init(void)
This page took 0.039733 seconds and 5 git commands to generate.