diff options
| author | Alexandru Ardelean <[email protected]> | 2021-06-24 11:04:40 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-07-19 09:51:59 +0100 |
| commit | d372e5a19a8eb281428954b5edbd033d824f1bf0 (patch) | |
| tree | f1d0de0e8dd5d283db5e93f627fde0481d47902a /include/linux | |
| parent | 9ae8da91a22cdd916f20cc4ba59911d084c7e26e (diff) | |
iio: accel: adxl345: convert probe to device-managed functions
This driver has two parts, one for i2c and one for spi, since the chip can
operate with both wire protocols.
The core file has a common adxl345_core_remove() function which puts the
chip into a powerdown state. This can be implemented with a
devm_add_action_or_reset() hook.
Doing that means we can register the IIO device with
devm_iio_device_register() and get rid of the adxl345_core_remove()
function.
The dev_set_drvdata() call can be removed as there is no other user of this
private data anymore.
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