]> git.baikalelectronics.ru Git - kernel.git/commit
toshiba_acpi: Only register backlight device when interface is read/write
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Apr 2012 16:23:50 +0000 (11:23 -0500)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:26:04 +0000 (14:26 -0400)
commitb5191ce34be6188fe75951413e3119df6c5d3138
treeaedddfe36ac78f94466192a02e47502d65c974b6
parent0cd939a7601c10f1d3f4d47370187f10c4358958
toshiba_acpi: Only register backlight device when interface is read/write

Currently the backlight device is registered unconditionally, but many
(probably most) Toshibas either don't support HCI_LCD_BRIGHTNESS or only
support reading from it. This patch adds a test of HCI_LCD_BRIGHTNESS
during initialization and only registers the backlight device if this
interface supports both reads and writes.

Cc: Akio Idehara <zbe64533@gmail.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/toshiba_acpi.c