diff options
| author | Alexandru Ardelean <aardelean@deviqon.com> | 2021-03-10 12:38:00 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-25 22:13:51 +0300 |
| commit | 70da64153123460a10f3cb53fa9edca3a0ec2727 (patch) | |
| tree | add23cec8b7768e69701e79e3370d742908c231f /include/linux/timerqueue.h | |
| parent | 218bc53dc70022ac31381b43c82f4097a95b8605 (diff) | |
| download | linux-70da64153123460a10f3cb53fa9edca3a0ec2727.tar.xz | |
iio: temperature: tmp007: use device-managed functions in probe
This change converts the driver to use device-managed functions in the
probe function. The power-down call is handled now via a
devm_add_action_or_reset() hook, and then devm_iio_device_register() can be
used to register the IIO device.
The final aim here would be for IIO to export only the device-managed
functions of it's API. That's a long way to go and this a small step in
that direction.
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210310093800.45822-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
