linux/drivers/iio/dac
Théo Borém Fabris 6a25893cb0 iio: dac: max5821: convert device register to device managed function
Add a device managed hook, via devm_add_action_or_reset() and
max5821_regulator_disable(), to disable voltage regulator on device
detach.
Replace iio_device_register() by devm_iio_device_register() and remove
the max5821_remove() function used to unregister the device and disable the
voltage regulator.
Remove i2c_set_clientdata() from the probe function, since
i2c_get_clientdata() is not used anymore.
Remove regulator_disable() calls from the probe function.

Signed-off-by: Théo Borém Fabris <theobf@usp.br>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210724220159.11998-1-theobf@usp.br
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-07-31 18:17:22 +01:00
..
ad5064.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5360.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5380.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5421.c iio: dac: ad5421: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:54 +01:00
ad5446.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5449.c iio: dac: ad5449: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:01 +01:00
ad5504.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5592r-base.c Second set of features and cleanups for IIO in 5.10 2020-09-22 09:45:11 +02:00
ad5592r-base.h iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock 2020-05-21 19:37:05 +01:00
ad5592r.c iio:dac:ad5592r: Drop of_match_ptr and ACPI_PTR protections. 2020-09-21 18:41:27 +01:00
ad5593r.c iio:dac:ad5593r: Drop of_match_ptr and ACPI_PTR protections. 2020-09-21 18:41:27 +01:00
ad5624r_spi.c iio: dac: ad5624r: Fix incorrect handling of an optional regulator. 2021-07-19 09:51:58 +01:00
ad5624r.h
ad5686-spi.c
ad5686.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5686.h iio: dac: ad5686: Add support for AD5673R/AD5677R 2021-03-11 20:47:10 +00:00
ad5696-i2c.c iio: dac: ad5686: Add support for AD5673R/AD5677R 2021-03-11 20:47:10 +00:00
ad5755.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5758.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad5761.c iio: dac: ad5761: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:04 +01:00
ad5764.c iio: dac: ad5764: Fix misdocumenting and formatting error 2020-07-20 09:03:06 +01:00
ad5766.c iio: dac: ad5766: Drop duplicate setting of iio_dev.dev.parent and of_node 2021-05-17 13:49:12 +01:00
ad5770r.c iio: dac: ad5770r: Put fwnode in error case during ->probe() 2021-05-22 08:32:36 +01:00
ad5791.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad7303.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ad8801.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
cio-dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dpot-dac.c Merge 5.9-rc5 into staging-next 2020-09-14 06:57:52 +02:00
ds4424.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
Kconfig iio: dac: ad5686: Add support for AD5673R/AD5677R 2021-03-11 20:47:10 +00:00
lpc18xx_dac.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc1660.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
ltc2632.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
m62332.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Makefile iio: dac: ad5766: add driver support for AD5766 2021-01-22 08:52:05 +00:00
max517.c iio:dac:max517.c: Use devm_iio_device_register() 2021-03-25 19:13:52 +00:00
max5821.c iio: dac: max5821: convert device register to device managed function 2021-07-31 18:17:22 +01:00
mcp4725.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
mcp4922.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
stm32-dac-core.c iio: adc: stm32: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
stm32-dac-core.h
stm32-dac.c iio: dac: stm32-dac: Use pm_runtime_resume_and_get() to replace open coding. 2021-05-17 13:54:26 +01:00
ti-dac082s085.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ti-dac5571.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ti-dac7311.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
ti-dac7612.c iio: dac: ti-dac7612: Replace indio_dev->mlock with own device lock 2020-09-16 18:56:22 +01:00
vf610_dac.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00