diff options
| author | Théo Borém Fabris <[email protected]> | 2021-07-24 19:02:00 -0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-31 18:17:22 +0100 |
| commit | 6a25893cb0e255ab8888d6a4f40e8d1e9d554ad0 (patch) | |
| tree | 00f3601c0758410e8f293b133271601b88391ffc /include/linux/debugobjects.h | |
| parent | eaaa23d71ebf0c598eedb81d4a814b0a475273f6 (diff) | |
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 <[email protected]>
Reviewed-by: Alexandru Ardelean <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions