summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/adxl345.h
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@deviqon.com>2021-06-24 10:05:34 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-07-19 10:51:59 +0200
commit9ae8da91a22cdd916f20cc4ba59911d084c7e26e (patch)
tree8bac62fcf5e74e35463ef584f76a88d7a86a1c64 /drivers/iio/accel/adxl345.h
parentiio: potentiometer: max5481: convert probe to device-managed (diff)
downloadlinux-9ae8da91a22cdd916f20cc4ba59911d084c7e26e.tar.xz
linux-9ae8da91a22cdd916f20cc4ba59911d084c7e26e.zip
iio: light: tcs3414: convert probe to device-managed routines
This change converts the driver to use only device-managed init routines in the probe function of the driver. This way, we no longer need the tcs3414_remove() hook. We still need to keep the i2c_set_clientdata() call, as that's being used for the PM routines. And lastly, a devm_add_action_or_reset() hook is added to call the powerdown handler when the chip is uninitialized or the probe fails. Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Link: https://lore.kernel.org/r/20210624080534.9209-1-aardelean@deviqon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/adxl345.h')
0 files changed, 0 insertions, 0 deletions