source: trunk/target/linux/omap24xx/patches-2.6.35/820-backlight-fixes.patch @ 22623

Last change on this file since 22623 was 22623, checked in by mb, 6 years ago

n810: Make sysfs backlight controls work

File size: 934 bytes
  • arch/arm/mach-omap2/board-n8x0-lcd.c

    ---
     arch/arm/mach-omap2/board-n8x0-lcd.c |   18 ++++++++++++++++++
     1 file changed, 18 insertions(+)
    
    old new static void mipid_shutdown(struct mipid_ 
    3434        } 
    3535} 
    3636 
     37static int n8x0_get_backlight_level(struct mipid_platform_data *pdata) 
     38{ 
     39        return tahvo_get_backlight_level(); 
     40} 
     41 
     42static int n8x0_get_max_backlight_level(struct mipid_platform_data *pdata) 
     43{ 
     44        return tahvo_get_max_backlight_level(); 
     45} 
     46 
     47static void n8x0_set_backlight_level(struct mipid_platform_data *pdata, int level) 
     48{ 
     49        tahvo_set_backlight_level(level); 
     50} 
     51 
    3752struct mipid_platform_data n8x0_mipid_platform_data = { 
    3853        .shutdown = mipid_shutdown, 
     54        .get_bklight_level = n8x0_get_backlight_level, 
     55        .set_bklight_level = n8x0_set_backlight_level, 
     56        .get_bklight_max = n8x0_get_max_backlight_level, 
    3957}; 
    4058 
    4159void __init n8x0_mipid_init(void) 
Note: See TracBrowser for help on using the repository browser.