staging:iio:ad7606: Move set_drvdata() into common code
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 19 Oct 2016 17:07:03 +0000 (19:07 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:15 +0000 (19:34 +0100)
commit382a4777ec03ef2b3320a39eec415003f76e9be4
tree58b69d7394c7390253fc2a9f6cd5f711ac775cda
parent91b7334bae734586b153a79fd82873c5d00eb950
staging:iio:ad7606: Move set_drvdata() into common code

Both the platform_device and SPI driver call set_drvdata() at the end of
their probe function. Move this into the common probe() function to reduce
duplicated code.

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