aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-06-25 17:01:36 +0300
committerJonathan Cameron <[email protected]>2021-07-19 09:51:59 +0100
commitc336b611e9e48304589303b580292dd1bf6d4eb3 (patch)
treef1f3e6569be031533adab6ccf47b7b70ff712347 /include/linux/debugobjects.h
parentf21a5f7215420c513d2bb2d21fdf24c9a550922e (diff)
iio: accel: bma220: convert probe to device-managed functions
This change converts the driver to use devm_iio_triggered_buffer_setup() and devm_iio_device_register() for initializing and registering the IIO device. The bma220_deinit() is converted into a callback for a devm_add_action_or_reset() hook, so that the device is put in stand-by when the driver gets uninitialized. The return value of the bma220_deinit() function isn't used as it does not add any value. On the error path of the probe function, this can just override the actual error with -EBUSY, or can even return 0 (no error), on the error path. 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