iio: adc: ad7124: Enable internal reference
authorMircea Caprioru <mircea.caprioru@analog.com>
Mon, 18 Nov 2019 08:38:57 +0000 (10:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:07:12 +0000 (20:07 +0100)
commit252ed340d49cfd1a85b8757396a3cebebc351929
tree9cd7dd3ae080bb85f7bb8f47d29d1a63111cc3c3
parent670b7e1be8a74140e7d645c61510e85fcf5d0d6a
iio: adc: ad7124: Enable internal reference

commit 11d7c8d3b1259c303fb52789febed58f0bc35ad1 upstream.

When the internal reference was selected by a channel it was not enabled.
This patch fixes that and enables it.

Fixes: b3af341bbd96 ("iio: adc: Add ad7124 support")
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ad7124.c