OSDN Git Service

Input: wm97xx: split out touchscreen registering
authorRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 13 Sep 2017 19:37:16 +0000 (21:37 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 16:04:54 +0000 (17:04 +0100)
commitc72f61e7407335dfa5fe5947827777b1429cd883
treeb785c776b547766e1ffb868ebf2ab57189300769
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
Input: wm97xx: split out touchscreen registering

wm97xx-core does several things in it initialization :
 - touchscreen input device setup
 - battery device creation

As the wm97xx is actually a multi-function device handling an audio
codec, a touchscreen, a gpio block and an ADC, reshape the probing to
isolate what is truly input/touchscreen specific from the remaining
part.

This is only code shuffling, there is no functional change.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/input/touchscreen/wm97xx-core.c