platform/x86: fujitsu-laptop: only handle backlight when appropriate
authorMichał Kępień <kernel@kempniu.pl>
Wed, 5 Apr 2017 06:49:00 +0000 (08:49 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:05 +0000 (10:16 -0700)
commit07acf62a40f2410a00ed058db225c8f959ff8695
tree68af4d8b76d8b44c39534bb9b24e92b7a6e2e7d2
parent09b29e1eda78d81218cf2304495c551d7714e0b0
platform/x86: fujitsu-laptop: only handle backlight when appropriate

The backlight part of fujitsu-laptop is only used by laptops which are
incapable of using the standard ACPI video interface for handling
brightness changes.  Conversely, on laptops which are capable of using
the latter, no vendor-specific ACPI calls should be made unless
explicitly requested by the user.  Bail out immediately from
acpi_fujitsu_bl_add() unless using the vendor-specific interface was
either explicitly requested by the user or automatically selected by the
kernel.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c