linux-stable/drivers/staging/iio/frequency
Alexandru Ardelean 9678844430 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 <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210913115209.300665-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-10-17 11:05:54 +01:00
..
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
ad9832.c staging: iio: ad9832: convert probe to device-managed 2021-10-17 11:05:54 +01:00
ad9832.h staging: iio: ad9832: use clock framework for clock reference 2019-04-14 13:22:30 +01:00
ad9834.c staging: iio: frequency: ad9834: Provide missing description for 'devid' 2021-05-10 11:19:24 +02:00
ad9834.h staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00
dds.h staging: iio: add proper SPDX identifiers to remaining driver files 2019-04-03 11:10:17 +02:00