diff options
author | Liu Ying <Ying.Liu@freescale.com> | 2014-05-09 12:31:30 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-06-03 23:02:15 -0500 |
commit | 2d77133b10de0b89f02d66acace34d4c6e393d47 (patch) | |
tree | 03318c3aaba55bcca889d2b58d52acd4c8a43fe3 /drivers | |
parent | ba62a1b22f459afea3ba8d35a10ca2652afb4bde (diff) |
ENGR00303539-4 video: backlight: Add fb event info in bl dev
The check_fb() hook may need the fb event information to
do something. For example, people may use it to delay
some time before enabling a backlight as some special panel
requires. To support this, this patch adds a field of
struct fb_event in the structure backlight_device and sets
the field in the fb notifier handler of the backlight driver.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/backlight/backlight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index 80d292fb92d8..d4f2fdf15171 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c @@ -43,6 +43,7 @@ static int fb_notifier_callback(struct notifier_block *self, bd = container_of(self, struct backlight_device, fb_notif); mutex_lock(&bd->ops_lock); + bd->fb_event = evdata; if (bd->ops) if (!bd->ops->check_fb || bd->ops->check_fb(bd, evdata->info)) { |