aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-09-13 14:52:09 +0300
committerJonathan Cameron <[email protected]>2021-10-17 11:05:54 +0100
commit96788444302658c6bf8224a811741b81611972fa (patch)
tree5571bcfd51655db6a063205b1e9e17a7eb4d77b7 /lib/mpi/mpiutil.c
parent8a16c76e23bb71d69aac121577d1114e1711eaa6 (diff)
staging: iio: ad9832: convert probe to device-managed
This change does a conversion of the driver to use device-managed init functions. The 2 regulators and the clock inits are converted to use devm_add_action_or_reset() callbacks for de-initializing them when the driver unloads. And finally the devm_iio_device_register() function can be use to register the device. The remove hook can finally be removed and the spi_set_drvdata() call can also be removed as the private data is no longer used. Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions