linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] iio: adc: mp2629: fix wrong comparison of channel
@ 2022-06-14 15:17 Saravanan Sekar
  2022-06-14 15:17 ` [PATCH 2/6] dt-bindings: mfd: Add mp2733 compatible Saravanan Sekar
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Saravanan Sekar @ 2022-06-14 15:17 UTC (permalink / raw)
  To: sre, lee.jones, robh+dt, krzysztof.kozlowski+dt, jic23, lars,
	andy.shevchenko
  Cc: linux-pm, devicetree, linux-iio, Saravanan Sekar

Input voltage channel enum is compared against iio address instead
of channel.

Fixes: 7abd9fb64682 ("iio: adc: mp2629: Add support for mp2629 ADC driver")
Signed-off-by: Saravanan Sekar <sravanhome@gmail.com>
---
 drivers/iio/adc/mp2629_adc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/mp2629_adc.c b/drivers/iio/adc/mp2629_adc.c
index aca084f1e78a..e7fbfe92e884 100644
--- a/drivers/iio/adc/mp2629_adc.c
+++ b/drivers/iio/adc/mp2629_adc.c
@@ -73,7 +73,7 @@ static int mp2629_read_raw(struct iio_dev *indio_dev,
 		if (ret)
 			return ret;
 
-		if (chan->address == MP2629_INPUT_VOLT)
+		if (chan->channel == MP2629_INPUT_VOLT)
 			rval &= GENMASK(6, 0);
 		*val = rval;
 		return IIO_VAL_INT;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-27 14:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-14 15:17 [PATCH 1/6] iio: adc: mp2629: fix wrong comparison of channel Saravanan Sekar
2022-06-14 15:17 ` [PATCH 2/6] dt-bindings: mfd: Add mp2733 compatible Saravanan Sekar
2022-06-15 22:59   ` Lee Jones
2022-06-27 13:29     ` Rob Herring
2022-06-27 14:45       ` Lee Jones
2022-06-14 15:17 ` [PATCH 3/6] mfd: mp2629: Add support for mps mp2733 battery charger Saravanan Sekar
2022-06-14 16:05   ` Andy Shevchenko
2022-06-14 18:29     ` saravanan sekar
2022-06-14 15:17 ` [PATCH 4/6] iio: adc: mp2629: restrict input voltage mask for mp2629 Saravanan Sekar
2022-06-14 16:07   ` Andy Shevchenko
2022-06-14 15:17 ` [PATCH 5/6] power: supply: Add support for mp2733 battery charger Saravanan Sekar
2022-06-14 16:12   ` Andy Shevchenko
2022-06-14 15:17 ` [PATCH 6/6] power: supply: mp2629: Add usb fast charge settings Saravanan Sekar
2022-06-14 16:13   ` Andy Shevchenko

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).