From: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
To: michal.simek@xilinx.com, rajnikant.bhojani@xilinx.com,
linux-iio@vger.kernel.org
Cc: jic23@kernel.org, Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Subject: [PATCH] iio: adc: xilinx-ams: add missing break in AMS_SUPPLY[78] cases
Date: Tue, 6 Jun 2017 15:21:21 -0400 [thread overview]
Message-ID: <1496776881-5265-1-git-send-email-jeff.dagenais@gmail.com> (raw)
This would otherwise lead supply 7 and 8 to scale to 3V instead of
6V
Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
---
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
next reply other threads:[~2017-06-06 19:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 19:21 Jean-Francois Dagenais [this message]
2017-06-11 13:58 ` [PATCH] iio: adc: xilinx-ams: add missing break in AMS_SUPPLY[78] cases Jonathan Cameron
2017-06-21 10:53 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1496776881-5265-1-git-send-email-jeff.dagenais@gmail.com \
--to=jeff.dagenais@gmail.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=michal.simek@xilinx.com \
--cc=rajnikant.bhojani@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).