Re: [PATCH] Input: cyttsp - use devm_regulator_bulk_get_enable()
From: Linus Walleij
Date: Mon Aug 05 2024 - 04:16:43 EST
On Mon, Aug 5, 2024 at 2:45 AM Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
> 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.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij