ARM: SAMSUNG: Add a callback 'notify_after' for PWM backlight control
authorJingoo Han <jg1.han@samsung.com>
Mon, 26 Dec 2011 11:29:31 +0000 (20:29 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 10 Feb 2012 23:02:42 +0000 (08:02 +0900)
The callback 'notify_after' was added to struct platform_pwm_backlight_data
provided by PWM backlight driver. Therefore, this patch adds a callback
'notify_after' which can be called after pwm_enable, pwm_disable and
pwm_config.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/dev-backlight.c

index a976c02..2254920 100644 (file)
@@ -115,6 +115,8 @@ void samsung_bl_set(struct samsung_bl_gpio_info *gpio_info,
                samsung_bl_data->init = bl_data->init;
        if (bl_data->notify)
                samsung_bl_data->notify = bl_data->notify;
+       if (bl_data->notify_after)
+               samsung_bl_data->notify_after = bl_data->notify_after;
        if (bl_data->exit)
                samsung_bl_data->exit = bl_data->exit;
        if (bl_data->check_fb)