diff options
| author | Alexandru Ardelean <[email protected]> | 2021-06-24 11:19:23 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-19 09:51:59 +0100 |
| commit | 2bb3b8f69accde535daee238e0f707dec452e0e4 (patch) | |
| tree | ef87f355bdb2ae8f88624efb0326e29ba93ebf14 /include/linux | |
| parent | 3ce868bb0595be1e4d75b0e1a055f2dc0867d335 (diff) | |
iio: temperature: tmp006: convert probe to device-managed
This change converts the driver to register via devm_iio_device_register().
For the tmp006_powerdown() hook, this uses a devm_add_action() hook to put
the device in powerdown mode when it's unregistered.
With these changes, the remove hook can be removed.
The i2c_set_clientdata() call is staying around as the private data is used
in the PM routines.
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')
0 files changed, 0 insertions, 0 deletions