Home
last modified time | relevance | path

Searched hist:"2 bb3b8f69accde535daee238e0f707dec452e0e4" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/iio/temperature/
H A Dtmp006.cdiff 2bb3b8f69accde535daee238e0f707dec452e0e4 Thu Jun 24 10:19:23 CEST 2021 Alexandru Ardelean <aardelean@deviqon.com> 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 <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210624081924.15897-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>