diff options
| author | Matti Vaittinen <[email protected]> | 2022-08-19 22:20:18 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-11-23 19:44:00 +0000 |
| commit | fd5b6c48ec3345d5c243e283fbdb69618ada2be8 (patch) | |
| tree | c0b302a7a002a3c6e12fc362ed40826dc7305c9d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 7ff0ad35aa6f70fe32fee33bc6e0aa356af99f76 (diff) | |
iio: adc: ad7606: 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.
Whilst here also switch to dev_err_probe() to provide more information
if a deferred probe occurs.
Signed-off-by: Matti Vaittinen <[email protected]>
Acked-by: Nuno Sá <[email protected]>
Link: https://lore.kernel.org/r/521c52f5a9bdc2db04d5775b36df4b233ae338da.1660934107.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions