staging:iio:ad7476: Rework reference voltage handling
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 10 Sep 2012 08:34:00 +0000 (09:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 15 Sep 2012 09:02:03 +0000 (10:02 +0100)
commitcb093e444fede72c1ee31265dac475dc87ff321b
treeb25511b39623a77e3306a6723e0e5ba7acf25410
parent93e33d703030fe0348c1ff9d8f40bc6c2d82dc30
staging:iio:ad7476: Rework reference voltage handling

Slightly rework the reference voltage handling for the ad7476 driver. Now the only
way to specify a external reference voltage is to use the regulator API,
previously it was possible to use either platform_data or the regulator API. The
new way is more consistent with what other drivers do.

Also do not ignore errors when requesting the regulator, since this will cope
very poorly with e.g. deferred probing.

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