platform/x86: fujitsu-laptop: reorganize LED-related code
authorMichał Kępień <kernel@kempniu.pl>
Fri, 7 Apr 2017 13:07:10 +0000 (15:07 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 19 Apr 2017 19:57:15 +0000 (12:57 -0700)
commite33ca45ca8fe130d10dda07391c967a8a3851f3a
treea44c3bae307d6060f929a756928b7562b7fa5630
parent7adb7b129ac0359b49a8406376a5aee8ce754b97
platform/x86: fujitsu-laptop: reorganize LED-related code

Move around LED definitions and callbacks to eliminate the need for
forward declarations and ensure code is organized LED-wise, not
action-wise.  Reorder assignments inside designated initializers so that
they are in the same order as struct led_classdev fields in
include/linux/leds.h.  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