summaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2022-10-16 17:34:06 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-11-23 19:44:02 +0000
commitb620be5f32621b953313056c396894818d5a2ed9 (patch)
treea52b18a13eab48a6f975c9663f36e62fb5cba3cd /drivers/iio/proximity
parentc437c977c1d2116e0f3667de7222544f348032e4 (diff)
downloadlinux-b620be5f32621b953313056c396894818d5a2ed9.tar.bz2
iio: light: noa1305: Use devm_regulator_get_enable()
This driver only turns the power on at probe and off via a custom devm_add_action_or_reset() callback. The new devm_regulator_get_enable() replaces this boilerplate code. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Martyn Welch <martyn.welch@collabora.com> Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20221016163409.320197-12-jic23@kernel.org
Diffstat (limited to 'drivers/iio/proximity')
0 files changed, 0 insertions, 0 deletions