OSDN Git Service

Input: atmel_mxt_ts - support regulator supplies
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 10 Nov 2020 02:02:50 +0000 (18:02 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Nov 2020 02:14:19 +0000 (18:14 -0800)
commitc6c746508981f22ffa754e0c8fcee00da6923b9e
tree4d5f691df06d2a07a1334d9ece1dd3e7bac87dcc
parent04f1842a8db6f31c9115af68c2b34fbb0f208cec
Input: atmel_mxt_ts - support regulator supplies

This adds the code for the Atmel touchscreens such as mXT224 to obtain
power regulators for the supply voltages AVDD and VDD. On mobile phones
such as Samsung GT-I8190 (Golden) this is needed to explicitly bring power
online.

We just enable the regulators at probe() and disable them at remove()
or in the error path for now.

As regulators are naturally stubbed if not available, this should have no
impact on existing systems.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201104153032.1387747-3-linus.walleij@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c