diff options
| author | Alexandru Ardelean <[email protected]> | 2021-06-28 17:17:09 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-17 18:57:55 +0100 |
| commit | 3d9efa9bd34f20d16251ad5d41fb42d27adb6b74 (patch) | |
| tree | 5da60b718561cafc4c30058f1ba72024acdecb49 /include/linux/debugobjects.h | |
| parent | 074e1ddb87825c36ca3771ffbab23fee9204a82a (diff) | |
iio: accel: da280: convert probe to device-managed functions
This is another simple conversion to device-managed functions, requiring
the use of devm_iio_device_register() and moving the disabling of the
device on a devm_add_action_or_reset() hook.
The i2c_set_clientdata() can be removed, as the PM functions can work with
just the device object, to obtain the i2c_client object.
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