Re: [PATCH] Input: cyttsp - use devm_regulator_bulk_get_enable()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux