RE: [PATCH v3 07/14] iio: ltc2688: Simplify using devm_regulator_*get_enable()

From: Sa, Nuno
Date: Tue Aug 30 2022 - 07:37:54 EST


> From: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
> Sent: Friday, August 19, 2022 9:19 PM
> To: Matti Vaittinen <mazziesaccount@xxxxxxxxx>; Matti Vaittinen
> <matti.vaittinen@xxxxxxxxxxxxxxxxx>
> Cc: Sa, Nuno <Nuno.Sa@xxxxxxxxxx>; Jonathan Cameron
> <jic23@xxxxxxxxxx>; Lars-Peter Clausen <lars@xxxxxxxxxx>; linux-
> iio@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: [PATCH v3 07/14] iio: ltc2688: Simplify using
> devm_regulator_*get_enable()
>
> [External]
>
> Use devm_regulator_bulk_get_enable() instead of open coded bulk-
> get,
> bulk-enable, add-action-to-disable-at-detach - pattern.
>
> Signed-off-by: Matti Vaittinen <mazziesaccount@xxxxxxxxx>
>

FWIW, I also don't care that much about the whole variable scope
discussion... Hence, with the change requested by Jonathan:

Reviewed-by: Nuno Sá <nuno.sa@xxxxxxxxxx>