]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:ad7606: Let the common probe function return int
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2016 17:07:04 +0000 (19:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:16 +0000 (19:34 +0100)
commitab7dfff4f81629770939130d989af87660867855
tree7c152549f1ad580fdeb6678c92dd081d2d39f51a
parentf046e6d7abfdbb14f34d8ad5af1edc8b7eb43ea0
staging:iio:ad7606: Let the common probe function return int

The common probe function for the ad7606 currently returns a struct iio_dev
pointer. The returned value is not used by the individual driver probe
functions other than for error checking.

Let the common probe function return a int instead to report the error
value directly (or 0 on success). This allows to simplify the code.

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