platform/x86: fujitsu-laptop: use device-specific data in backlight code
authorMichał Kępień <kernel@kempniu.pl>
Fri, 19 May 2017 07:44:43 +0000 (09:44 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 3 Jun 2017 19:03:52 +0000 (12:03 -0700)
commitf2db7c646b716160dbb8832c24d47a35e9ac299a
treef513e836b2f3db14231fd84678c09478bc28bca3
parent679374e49c6f6691f5b19751b3a2e36cba0c4a4d
platform/x86: fujitsu-laptop: use device-specific data in backlight code

To prevent using module-wide data in backlight-related code, employ
acpi_driver_data() and bl_get_data() where possible to fetch
device-specific data to work on in each function.  This makes the input
local variable in acpi_fujitsu_bl_notify() and the acpi_handle field of
struct fujitsu_bl redundant, so remove them.

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