]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: use device-specific data in remaining module code
authorMichał Kępień <kernel@kempniu.pl>
Fri, 19 May 2017 07:44:48 +0000 (09:44 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 3 Jun 2017 19:04:47 +0000 (12:04 -0700)
commitb8dde7051f0273a59f3cece3ce17577b728a469e
tree438c326a0835310ea64db5a079682a7adf9cd022
parent674d0cd4e2e05c07edbdb9664ae62863490473fd
platform/x86: fujitsu-laptop: use device-specific data in remaining module code

To avoid using module-wide data in remaining module code, employ
acpi_driver_data() and dev_get_drvdata() to fetch device-specific data
to work on in each function.  This makes the input local variables in
hotkey-related callbacks and the module-wide struct fujitsu_laptop
redundant, so remove them.  Adjust whitespace to make checkpatch happy.

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