]> Pileus Git - ~andy/linux/commit
staging/olpc_dcon: drop fb_notifier code
authorAndres Salomon <dilinger@queued.net>
Mon, 1 Oct 2012 21:46:01 +0000 (14:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 18:39:21 +0000 (11:39 -0700)
commit20b27c61b714537a4cd6d93679e9d8a5947f1769
treeb7615775305726c2831af3a40dc4ac8724733d9b
parentc40f20da3b3f0738ced45533c743217e00090062
staging/olpc_dcon: drop fb_notifier code

Previously we registered a notifier block to inform us of any framebuffer
device changes; if the screen was blanked or unblanked, we'd put the DCON
to sleep or wake it up.

Turns out that the backlight code registers a notifier block as well
and calls the update_status hook, so we can just use that to put the DCON
to sleep.  For those status updates where the blanking isn't changed,
dcon_sleep will do nothing.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c
drivers/staging/olpc_dcon/olpc_dcon.h