summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/twl6030-gpadc.c
diff options
context:
space:
mode:
authorLucas Stankus <lucas.p.stankus@gmail.com>2021-03-29 00:46:04 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-03-29 14:17:41 +0300
commit44fc4de9bd61ca2c7f5215df5321457af3bece24 (patch)
treec59d8b2da9be4361f0b9fc39632343f026d8bf3c /drivers/iio/adc/twl6030-gpadc.c
parentabfdfd144357e6f555db234f6a64498423a4322a (diff)
downloadlinux-44fc4de9bd61ca2c7f5215df5321457af3bece24.tar.xz
iio: adc: ad7923: use devm_add_action_or_reset for regulator disable
Adds a device-managed action to handle disabling the driver's regulator on device detach. This slightly simplifies deinitialization and enables further conversion of the driver to device-managed routines without breaking the init order. Signed-off-by: Lucas Stankus <lucas.p.stankus@gmail.com> Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Link: https://lore.kernel.org/r/49a7c0436ca1186313dbccf3d810d0cf38cb5b37.1616966903.git.lucas.p.stankus@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/twl6030-gpadc.c')
0 files changed, 0 insertions, 0 deletions