]> git.karo-electronics.de Git - karo-tx-linux.git/commit
platform/x86: fujitsu-laptop: add and remove platform device in separate functions
authorMichał Kępień <kernel@kempniu.pl>
Tue, 14 Mar 2017 10:26:29 +0000 (11:26 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 23 Mar 2017 16:03:23 +0000 (09:03 -0700)
commitd811b511c18d9349a3880a4a7fff4c9c1169ac03
treeabde9782b1a2119a428e86e47394af612eafc79f
parentb0c4b9c64e7ca4eaf39996429e98d97725d7098e
platform/x86: fujitsu-laptop: add and remove platform device in separate functions

Platform device handling adds a lot of complexity to fujitsu_init(),
which hinders its readability.  Extract code responsible for adding and
removing the platform device to separate functions.  Adjust whitespace
to make checkpatch happy.

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