aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-06-24 11:06:41 +0300
committerJonathan Cameron <[email protected]>2021-07-19 09:51:59 +0100
commitd272e0ab5f4bcaf0a29e7606854cfb5a9b725758 (patch)
tree7ef26b6bf272d8cb08ae8a61ca8e2b8d749bff6e /include/linux/debugobjects.h
parentc359a80ca29099be951a1fa5c7529792cadf3e8f (diff)
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 <[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