backlight/fbcon: Add FB_EVENT_CONBLANK
authorRichard Purdie <rpurdie@rpsys.net>
Fri, 9 Feb 2007 09:46:45 +0000 (09:46 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Tue, 20 Feb 2007 08:38:45 +0000 (08:38 +0000)
commit994efacdf9a087b52f71e620b58dfa526b0cf928
tree2b2668df970fe350ce2ab4a7bb7ae91d6313ce0f
parent34f18a71d9bc55e8210c3fe02938336f82f40b30
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>
drivers/video/backlight/backlight.c
drivers/video/console/fbcon.c
include/linux/fb.h