All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: xilinx-xadc: assign auxiliary channels address correctly
@ 2014-09-11  8:55 Subbaraya Sundeep Bhatta
  2014-09-12 17:25 ` Lars-Peter Clausen
  0 siblings, 1 reply; 6+ messages in thread
From: Subbaraya Sundeep Bhatta @ 2014-09-11  8:55 UTC (permalink / raw)
  To: jic23, lars, linux-iio, linux-kernel
  Cc: michals, svemula, anirudh, Subbaraya Sundeep Bhatta

This patch fixes incorrect logic for assigning address
to auxiliary channels of xilinx xadc.

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
---
 drivers/iio/adc/xilinx-xadc-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
index fd2745c..626b397 100644
--- a/drivers/iio/adc/xilinx-xadc-core.c
+++ b/drivers/iio/adc/xilinx-xadc-core.c
@@ -1126,7 +1126,7 @@ static int xadc_parse_dt(struct iio_dev *indio_dev, struct device_node *np,
 				chan->address = XADC_REG_VPVN;
 			} else {
 				chan->scan_index = 15 + reg;
-				chan->scan_index = XADC_REG_VAUX(reg - 1);
+				chan->address = XADC_REG_VAUX(reg - 1);
 			}
 			num_channels++;
 			chan++;
-- 
1.7.4

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

end of thread, other threads:[~2014-10-04 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-11  8:55 [PATCH] iio: adc: xilinx-xadc: assign auxiliary channels address correctly Subbaraya Sundeep Bhatta
2014-09-12 17:25 ` Lars-Peter Clausen
2014-09-13 20:04   ` Jonathan Cameron
2014-09-14  8:30     ` sundeep subbaraya
2014-10-03 22:34     ` iio commit dates in future (was: Re: [PATCH] iio: adc: xilinx-xadc: assign auxiliary channels address correctly) Anssi Hannula
2014-10-04 10:17       ` iio commit dates in future Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.