aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-06-30 16:16:36 +0300
committerJonathan Cameron <[email protected]>2021-07-17 18:49:30 +0100
commit148da125a0c825aa1576602391d6eece6568226f (patch)
treeebed4d68969fe06181d2eb64456fb9cd010f61df /include/linux/debugobjects.h
parent09d5135b6ffcb243580a4a77f299a0253a94f5e3 (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