]> git.baikalelectronics.ru Git - kernel.git/commit
mbp_nvidia_bl: check that the backlight control functions
authorMatthew Garrett <mjg@redhat.com>
Tue, 22 Mar 2011 23:30:27 +0000 (16:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:00 +0000 (17:44 -0700)
commitba797c473fb5e1526f26ba027b5ce2e8023e3565
tree9d9139fa58c28b1f8a40b77df7b839bc70c59a25
parent5126d84c88079e5e2b8796262ad76c86f8bb958e
mbp_nvidia_bl: check that the backlight control functions

The SMI-based backlight control functionality may fail to work if the
system is running under EFI rather than BIOS.  Check that the hardware
responds as expected, and exit if it doesn't.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Acked-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Mourad De Clerck <mourad@aquazul.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/mbp_nvidia_bl.c