Home
last modified time | relevance | path

Searched hist:f55c8e66 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/adc/
H A Dmax1241.cf55c8e66 Fri Aug 19 14:20:32 CDT 2022 Matti Vaittinen <mazziesaccount@gmail.com> iio: adc: max1241: simplify using devm_regulator_get_enable()

Drop open-coded pattern: 'devm_regulator_get(), regulator_enable(),
add_action_or_reset(regulator_disable)' and use the
devm_regulator_get_enable() and drop the pointer to the regulator.
This simplifies code and makes it less tempting to add manual control
for the regulator which is also controlled by devm.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Alexandru Lazar <alazar@startmail.com>
Link: https://lore.kernel.org/r/7c759bf6c06e72ae70bffeebc1939d9903427278.1660934107.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>