iio: ad5686: fix optional reference voltage declaration
authorUrs Fässler <urs.fassler@bytesatwork.ch>
Mon, 2 Feb 2015 16:12:23 +0000 (17:12 +0100)
committerJonathan Cameron <jic23@kernel.org>
Wed, 4 Feb 2015 16:54:38 +0000 (16:54 +0000)
commitda019f59cb16570e78feaf10380ac65a3a06861e
tree948f222c22886da8002f46f74165e7b790679ba2
parent9e128ced3851d2802b6db870f6b2e93f449ce013
iio: ad5686: fix optional reference voltage declaration

When not using the "_optional" function, a dummy regulator is returned
and the driver fails to initialize.

Signed-off-by: Urs Fässler <urs.fassler@bytesatwork.ch>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5686.c