Re: [PATCH 2/6] iio: health: afe4403: Use devm_regulator_get_enable() helper
From: David Lechner
Date: Wed Aug 13 2025 - 19:12:38 EST
On 8/13/25 5:58 PM, Andrew Davis wrote:
> This takes care of both getting and enabling the regulator in one
> function, it also handles the devm action, so remove that. Also
> do not disable the regulator on suspend, this will be handled for
I didn't know that this worked automatically. What is the mechanism
that makes it work? I've seen lots of drivers doing the disable/
enable in suspend/resume, so I just always assumed that was how one
is supposed to do it.
> us. We now do not need to track the regulator at all, so drop it
> from the device struct.
>
> Signed-off-by: Andrew Davis <afd@xxxxxx>