summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/chipone_icn8505.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-08-04 17:45:03 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-08-05 10:48:39 -0700
commitae25dbac2ecced6b5825992449f2bd8bee3466ae (patch)
tree634ee60eb5fd875fa8c36a2e01c16bf3e679ebac /drivers/input/touchscreen/chipone_icn8505.c
parent7925312eca64ef7de8c149ea80e1411be7df4679 (diff)
Input: cyttsp - use devm_regulator_bulk_get_enable()
The driver does not try to power down the rails at system suspend or when touchscreen is not in use, but rather enables regulators at probe time. Power savings are achieved by requesting the controller to enter low power mode. Switch to devm_regulator_bulk_get_enable() instead of separately requesting regulators, enabling them, and installing a custom devm-action to disable them on unbind/remove, which simplifies the code. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/ZrAgj9rG6oVqfdoK@google.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/chipone_icn8505.c')
0 files changed, 0 insertions, 0 deletions