]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit128896cb8a2d13b8f8e60827e34c20facf8ff49d
tree4d5f691df06d2a07a1334d9ece1dd3e7bac87dcc
parent3684ffc029a94f748a54770172ee16175b7dbe05
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