[PATCH] iio: adc: xilinx-ams: add missing break in AMS_SUPPLY[78] cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This would otherwise lead supply 7 and 8 to scale to 3V instead of
6V

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@xxxxxxxxx>
---
 drivers/iio/adc/xilinx-ams.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c
index fd4eb6d..6b3ab56 100644
--- a/drivers/iio/adc/xilinx-ams.c
+++ b/drivers/iio/adc/xilinx-ams.c
@@ -255,6 +255,7 @@ static int ams_read_raw(struct iio_dev *indio_dev,
 			case AMS_SUPPLY7:
 			case AMS_SUPPLY8:
 				*val = AMS_SUPPLY_SCALE_6VOLT;
+				break;
 			case AMS_SUPPLY9:
 			case AMS_SUPPLY10:
 				if (chan->scan_index < PS_SEQ_MAX)
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux