staging:iio:ad7887: Rework regulator handling
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 5 Nov 2012 09:56:00 +0000 (09:56 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Nov 2012 20:39:52 +0000 (20:39 +0000)
commitbf5d2613c9083b8d4f4e98f5b25553fc938b50c6
tree78780c25be42374f84735e37908336f458b42ba6
parentbd6880477a3d73270edead88f4b806504998e5d8
staging:iio:ad7887: Rework regulator handling

Rework the regulator handling of the ad7887 driver to match more closely what we
do for other drivers. Only request the regulator if a external reference is
used, but treat it as an error if requesting the regulator fails. Also remove
the possibility to specify the reference voltage via platform data and always
use the regulator for this.

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