platform/x86: fujitsu-laptop: register backlight device in a separate function
authorMichał Kępień <kernel@kempniu.pl>
Fri, 10 Mar 2017 10:50:33 +0000 (11:50 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:16 +0000 (22:57 -0700)
commitb8d69c16a0bdc2cae1ad709f0a9e6a2484c457a9
tree8c286f1b8fac7eb05c6a400b7285f24786c6aa77
parentd2aa3ae86daca0486da4301702e709b2d519b6cb
platform/x86: fujitsu-laptop: register backlight device in a separate function

Move code responsible for backlight device registration to a separate
function in order to simplify error handling and decrease indentation.
Simplify initialization of struct backlight_properties.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Jonathan Woithe <jwoithe@just42.net>
drivers/platform/x86/fujitsu-laptop.c