[PATCH 5/5] iio: adc: xilinx: Set .datasheet_name instead of .extend_name

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

 



From: Thomas Betker <thomas.betker@xxxxxxxxxxxxxxxxx>

"vccint", "vccaux", "vccbram" etc. are the datasheet names of the
XADC channels, not extensions; make them so.

Signed-off-by: Thomas Betker <thomas.betker@xxxxxxxxxxxxxxxxx>
---
 drivers/iio/adc/xilinx-xadc-core.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c
index ce93bd8..69db509 100644
--- a/drivers/iio/adc/xilinx-xadc-core.c
+++ b/drivers/iio/adc/xilinx-xadc-core.c
@@ -985,7 +985,7 @@ static const struct iio_event_spec xadc_voltage_events[] = {
 	}, \
 }
 
-#define XADC_CHAN_VOLTAGE(_chan, _scan_index, _addr, _ext, _alarm) { \
+#define XADC_CHAN_VOLTAGE(_chan, _scan_index, _addr, _name, _alarm) { \
 	.type = IIO_VOLTAGE, \
 	.indexed = 1, \
 	.channel = (_chan), \
@@ -1003,7 +1003,7 @@ static const struct iio_event_spec xadc_voltage_events[] = {
 		.shift = 4, \
 		.endianness = IIO_CPU, \
 	}, \
-	.extend_name = _ext, \
+	.datasheet_name = _name, \
 }
 
 static const struct iio_chan_spec xadc_channels[] = {
-- 
1.7.9.5

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