diff options
| author | Alexandru Ardelean <[email protected]> | 2021-06-30 16:16:36 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-17 18:49:30 +0100 |
| commit | 148da125a0c825aa1576602391d6eece6568226f (patch) | |
| tree | ebed4d68969fe06181d2eb64456fb9cd010f61df /include/linux/debugobjects.h | |
| parent | 09d5135b6ffcb243580a4a77f299a0253a94f5e3 (diff) | |
iio: proximity: rfd77402: convert probe to device-managed functions
This change converts the probe hook to register the IIO device with
devm_iio_device_register() and register a hook with
devm_add_action_or_reset() to put the device in powerdown when the driver
gets unloaded.
Since the PM suspend/resume functions need only a reference to the
i2c_client object (which can be obtained from the base device object), the
i2c_set_clientdata() call can be removed.
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