platform/x86: fujitsu-laptop: switch to a managed backlight input device
authorMichał Kępień <kernel@kempniu.pl>
Mon, 20 Mar 2017 09:32:18 +0000 (10:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:24 +0000 (10:14 -0700)
commitf8a399dcfae913e773cbef6a940755953cdd70a3
tree9573fa0b3bfdd219e929b2f0c1673d406db7a457
parent7d134e43a2ac729888bb752f8dba5f8bbb5c938a
platform/x86: fujitsu-laptop: switch to a managed backlight input device

Use a managed input device for brightness events in order to simplify
two error paths and one cleanup function while also reducing the number
of local variables required.  Remove double assignment 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