]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: remove backlight-related attributes from the platform...
authorMichał Kępień <kernel@kempniu.pl>
Tue, 14 Mar 2017 10:26:27 +0000 (11:26 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 23 Mar 2017 16:03:22 +0000 (09:03 -0700)
commit117b3e831dc2d0a52402b566c8226181eb6478e6
tree05c4bd6b6c05b2ce6459ac0fbbe5c2832d226786
parent7990a3dd99912660f079006c12796277d2ef9471
platform/x86: fujitsu-laptop: remove backlight-related attributes from the platform device

Setting backlight level using a vendor-specific interface should only be
possible when using the latter is either explicitly requested by the
user or automatically selected by the kernel.  fujitsu-laptop violates
that premise by unconditionally attaching three backlight-related
attributes to the platform device it registers.  Remove the offending
attributes from the platform device.  Update module comments to reflect
this change.

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