Input: edt-ft5x06 - move parameter restore into helper
authorMarco Felsch <m.felsch@pengutronix.de>
Sat, 9 May 2020 19:05:36 +0000 (12:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 9 May 2020 21:39:36 +0000 (14:39 -0700)
commitf4ee52f3ad8c9210030a9fe48bbb74dbc7c9f90e
tree2cf8f2c6df0cdb0a9fca8717b6b371cf74ec3fe8
parent255cdaf73412de13608fb776101402dca68bed2b
Input: edt-ft5x06 - move parameter restore into helper

We need to restore the parameters if we switch between the
factory/work mode and during the resume process if we switched off the
power-supply. Therefore refactor edt_ft5x06_work_mode() and move the
"restore the parameters" into a helper routine so we can reuse it later.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20200227112819.16754-3-m.felsch@pengutronix.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c