diff options
| author | Alexandru Ardelean <aardelean@deviqon.com> | 2021-06-30 15:03:38 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-07-17 18:53:53 +0100 |
| commit | 074e1ddb87825c36ca3771ffbab23fee9204a82a (patch) | |
| tree | 58852878f05f7c98a14d6a61996620c878b5ca00 /tools/perf/scripts/python/libxed.py | |
| parent | 689f584b9858393809dc28046a7b51f9535d913d (diff) | |
| download | linux-074e1ddb87825c36ca3771ffbab23fee9204a82a.tar.gz linux-074e1ddb87825c36ca3771ffbab23fee9204a82a.zip | |
iio: accel: da311: convert probe to device-managed functions
This is another simple conversion to device-managed functions, requiring
the use of devm_iio_device_register() and moving the disabling of the
device on a devm_add_action_or_reset() hook.
The i2c_set_clientdata() can be removed, as the PM functions can work with
just the device object, to obtain the i2c_client object.
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210630120338.482426-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
