pwm-backlight: handle BL_CORE_FBBLANK state
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 30 Jan 2013 06:19:15 +0000 (15:19 +0900)
committerThierry Reding <thierry.reding@avionic-design.de>
Wed, 30 Jan 2013 07:52:00 +0000 (08:52 +0100)
commit0132267d659107616eb044777f1b0be55381129a
treeb583dd1eafb39ee800528a213018b3a300589861
parent0d75c203effefa4f62ca4d30bf52bd9ec246717f
pwm-backlight: handle BL_CORE_FBBLANK state

According to include/linux/backlight.h, the fb_blank field is to be
removed and blank status should preferably be set by setting the
BL_CORE_FBBLANK bit of the state field. This patch ensures this
condition is also taken into account when updating the backlight state.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
drivers/video/backlight/pwm_bl.c