Re: [PATCH 08/11] staging: iio: adt7316: allow adt751x to use internal vref for all dacs

2018-12-16 Thread Jonathan Cameron
On Tue, 11 Dec 2018 17:55:00 -0700 Jeremy Fertic wrote: > With adt7516/7/9, internal vref is available for dacs a and b, dacs c and > d, or all dacs. The driver doesn't currently support internal vref for all > dacs. Change the else if to an if so both bits are checked rather than > just one or t

[PATCH 08/11] staging: iio: adt7316: allow adt751x to use internal vref for all dacs

2018-12-11 Thread Jeremy Fertic
With adt7516/7/9, internal vref is available for dacs a and b, dacs c and d, or all dacs. The driver doesn't currently support internal vref for all dacs. Change the else if to an if so both bits are checked rather than just one or the other. Signed-off-by: Jeremy Fertic --- drivers/staging/iio/