diff options
author | Matti Vaittinen <mazziesaccount@gmail.com> | 2022-08-19 22:20:32 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 19:44:01 +0000 |
commit | f55c8e6696425ef22b7d08fc05b920d3a1a5dbf6 (patch) | |
tree | 18f639b7e7664c6f9172c1928992331c6c92374d /MAINTAINERS | |
parent | fd5b6c48ec3345d5c243e283fbdb69618ada2be8 (diff) |
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>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions