linux/drivers/iio/potentiometer
Alexandru Ardelean d272e0ab5f iio: potentiometer: max5481: convert probe to device-managed
The change converts the probe function to use the
devm_iio_device_register() function.

Before calling that, we need to register an action to store the wiper back
to non-volatile memory when the device is de-registered.

We don't need to do this if the probe fails, because the only place where
the probe can fail now is devm_iio_device_register() and that shouldn't
create an IIO device (for userspace to poke at) if it fails.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210624080641.9953-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-07-19 09:51:59 +01:00
..
ad5272.c iio: potentiometer: ad5272: Correct polarity of reset 2020-12-03 19:32:42 +00:00
ds1803.c iio:potentiometer:ds1803: Drop of_match_ptr and CONFIG_OF protections 2020-09-17 19:13:38 +01:00
Kconfig iio: potentiometer: add a driver for Maxim 5432-5435 2019-08-05 14:25:08 +01:00
Makefile iio: potentiometer: add a driver for Maxim 5432-5435 2019-08-05 14:25:08 +01:00
max5432.c iio:potentiometer:max5432: Drop of_match_ptr and use generic fw accessors 2020-09-21 18:41:08 +01:00
max5481.c iio: potentiometer: max5481: convert probe to device-managed 2021-07-19 09:51:59 +01:00
max5487.c iio: use getter/setter functions 2021-03-11 20:47:07 +00:00
mcp4018.c iio:potentiometer:mcp4018: Drop of_match_ptr and CONFIG_OF protections. 2020-09-21 18:41:26 +01:00
mcp4131.c iio:potentiometer:mcp4131: Drop of_match_ptr and use generic fw interfaces. 2020-09-21 18:41:26 +01:00
mcp4531.c iio:potentiometer:mcp4531: Drop of_match_ptr and CONFIG_OF protections. 2020-09-21 18:41:27 +01:00
mcp41010.c Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
tpl0102.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00