]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 14 Mar 2015 19:37:21 +0000 (15:37 -0400)
commit328499bcb4176cbcd99e60d12d3320f356241540
tree68435c97b73b6e2db64f60f4aad0b7e190d63344
parent30fa0dbf6757fd3c7ecb035583beba3169654e4e
iio: ad5686: fix optional reference voltage declaration

commit da019f59cb16570e78feaf10380ac65a3a06861e upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/iio/dac/ad5686.c