From: Jingoo Han Date: Mon, 26 Dec 2011 11:29:31 +0000 (+0900) Subject: ARM: SAMSUNG: Add a callback 'notify_after' for PWM backlight control X-Git-Tag: firefly_0821_release~3680^2~3233^2~1^2~16 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=23747145070779682ccdf948b786adaf88b2a89e;p=firefly-linux-kernel-4.4.55.git ARM: SAMSUNG: Add a callback 'notify_after' for PWM backlight control 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 Signed-off-by: Kukjin Kim --- diff --git a/arch/arm/plat-samsung/dev-backlight.c b/arch/arm/plat-samsung/dev-backlight.c index a976c023b286..2254920a02cf 100644 --- a/arch/arm/plat-samsung/dev-backlight.c +++ b/arch/arm/plat-samsung/dev-backlight.c @@ -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)