diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-02-09 04:46:45 -0500 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-02-20 03:38:45 -0500 |
commit | 994efacdf9a087b52f71e620b58dfa526b0cf928 (patch) | |
tree | 2b2668df970fe350ce2ab4a7bb7ae91d6313ce0f /drivers/video/backlight | |
parent | 34f18a71d9bc55e8210c3fe02938336f82f40b30 (diff) |
backlight/fbcon: Add FB_EVENT_CONBLANK
The backlight class wants notification whenever the console is blanked
but doesn't get this when hardware blanking fails and software blanking
is used. Changing FB_EVENT_BLANK to report both would be a behaviour
change which could confuse the console layer so add a new event for
software blanking and have the backlight class listen for both.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r-- | drivers/video/backlight/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c index 4f987c40b72d..5490b2ae5134 100644 --- a/drivers/video/backlight/backlight.c +++ b/drivers/video/backlight/backlight.c | |||
@@ -28,7 +28,7 @@ static int fb_notifier_callback(struct notifier_block *self, | |||
28 | struct fb_event *evdata = data; | 28 | struct fb_event *evdata = data; |
29 | 29 | ||
30 | /* If we aren't interested in this event, skip it immediately ... */ | 30 | /* If we aren't interested in this event, skip it immediately ... */ |
31 | if (event != FB_EVENT_BLANK) | 31 | if (event != FB_EVENT_BLANK && event != FB_EVENT_CONBLANK) |
32 | return 0; | 32 | return 0; |
33 | 33 | ||
34 | bd = container_of(self, struct backlight_device, fb_notif); | 34 | bd = container_of(self, struct backlight_device, fb_notif); |