]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ac50486b596187713cfabc1bca0a955f60aa5a0
tree68af4d8b76d8b44c39534bb9b24e92b7a6e2e7d2
parent20fcdc58d6f06dabb6dfd27687eb58243c4c40b2
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