platform/x86: fujitsu-laptop: explicitly pass ACPI device to call_fext_func()
authorMichał Kępień <kernel@kempniu.pl>
Fri, 19 May 2017 07:44:46 +0000 (09:44 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 3 Jun 2017 19:04:37 +0000 (12:04 -0700)
commit84631e0c8b90411b424682eec4084006fae3f2cc
tree230774a90d3b4f015214f9001ff4cc5aa6ecde02
parentca0d9eab0fb5b92c94de049241d639c2db66c3a6
platform/x86: fujitsu-laptop: explicitly pass ACPI device to call_fext_func()

Prepare for not using module-wide data in call_fext_func() by explicitly
passing it a pointer to struct acpi_device while still using a
module-wide pointer in each call.

Doing this enables call_fext_func() to fetch the ACPI handle from its
argument, making the acpi_handle field of struct fujitsu_laptop useless,
so remove that field.  While we are at it, the dev field of the same
structure is assigned in acpi_fujitsu_laptop_add() but not used for
anything, so remove it as well.

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