]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7606: Let common remove function take a struct device *
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2016 17:07:05 +0000 (19:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:16 +0000 (19:34 +0100)
commit86368ba3492fbd307b328ec7c9086e3e41f1a3cb
tree0c1d8d3dfbb2f44d569075798ea57c5a856d10d0
parent4a8195065b648b052468bf66cb99dcd4dad44f8d
staging:iio:ad7606: Let common remove function take a struct device *

Currently the common remove function takes a struct iio_dev *. This
parameter is retrieved by the individual driver remove functions by calling
get_drvdata() on their device. To simplify the code let the common remove
function directly take a struct dev * and do the IIO device in retrieval
the common remove function.

This also aligns the interface with the common probe function.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606.h
drivers/staging/iio/adc/ad7606_core.c
drivers/staging/iio/adc/ad7606_par.c
drivers/staging/iio/adc/ad7606_spi.c