forked from Minki/linux
d272e0ab5f
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> |
||
---|---|---|
.. | ||
ad5272.c | ||
ds1803.c | ||
Kconfig | ||
Makefile | ||
max5432.c | ||
max5481.c | ||
max5487.c | ||
mcp4018.c | ||
mcp4131.c | ||
mcp4531.c | ||
mcp41010.c | ||
tpl0102.c |