summaryrefslogtreecommitdiff
path: root/drivers/clocksource/bcm_kona_timer.c
diff options
context:
space:
mode:
authorMatti Vaittinen <mazziesaccount@gmail.com>2022-08-19 22:20:47 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-23 22:44:01 +0300
commit3dfa1d4f63baf41774bbc77467729de39e0ac8a6 (patch)
tree974aeb97d35d044630171e4e3c64adfa4fa7d5a9 /drivers/clocksource/bcm_kona_timer.c
parentf55c8e6696425ef22b7d08fc05b920d3a1a5dbf6 (diff)
downloadlinux-3dfa1d4f63baf41774bbc77467729de39e0ac8a6.tar.xz
iio: adc: max1363: 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: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/1286ea127d190e5708a0aaff271819b2d3f8802d.1660934107.git.mazziesaccount@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/clocksource/bcm_kona_timer.c')
0 files changed, 0 insertions, 0 deletions