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)
commit78b2602fbb0e3fe33599ced64b74b73a681b1e56
tree05c4bd6b6c05b2ce6459ac0fbbe5c2832d226786
parent999ddbdf3c8354077660efbac9ab91c12187d6d2
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