aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorLudovic Desroches2016-03-03 17:09:13 +0100
committerJonathan Cameron2016-03-05 15:01:46 +0000
commit43d33f7458383ff6ce9838fca7b78b9b64fb988a (patch)
treeacdeeab7065af229d53bbcc3542859be21daff63 /drivers/iio/adc
parent033691a9a12f684c68f443f3676806dd64011295 (diff)
iio:adc:at91-sama5d2: fix typo
Fix typo in the name of a macro. Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/at91-sama5d2_adc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c
index dbee13ad33a3..33bacece325c 100644
--- a/drivers/iio/adc/at91-sama5d2_adc.c
+++ b/drivers/iio/adc/at91-sama5d2_adc.c
@@ -140,7 +140,7 @@
/* Version Register */
#define AT91_SAMA5D2_VERSION 0xfc
-#define AT91_AT91_SAMA5D2_CHAN(num, addr) \
+#define AT91_SAMA5D2_CHAN(num, addr) \
{ \
.type = IIO_VOLTAGE, \
.channel = num, \
@@ -185,18 +185,18 @@ struct at91_adc_state {
};
static const struct iio_chan_spec at91_adc_channels[] = {
- AT91_AT91_SAMA5D2_CHAN(0, 0x50),
- AT91_AT91_SAMA5D2_CHAN(1, 0x54),
- AT91_AT91_SAMA5D2_CHAN(2, 0x58),
- AT91_AT91_SAMA5D2_CHAN(3, 0x5c),
- AT91_AT91_SAMA5D2_CHAN(4, 0x60),
- AT91_AT91_SAMA5D2_CHAN(5, 0x64),
- AT91_AT91_SAMA5D2_CHAN(6, 0x68),
- AT91_AT91_SAMA5D2_CHAN(7, 0x6c),
- AT91_AT91_SAMA5D2_CHAN(8, 0x70),
- AT91_AT91_SAMA5D2_CHAN(9, 0x74),
- AT91_AT91_SAMA5D2_CHAN(10, 0x78),
- AT91_AT91_SAMA5D2_CHAN(11, 0x7c),
+ AT91_SAMA5D2_CHAN(0, 0x50),
+ AT91_SAMA5D2_CHAN(1, 0x54),
+ AT91_SAMA5D2_CHAN(2, 0x58),
+ AT91_SAMA5D2_CHAN(3, 0x5c),
+ AT91_SAMA5D2_CHAN(4, 0x60),
+ AT91_SAMA5D2_CHAN(5, 0x64),
+ AT91_SAMA5D2_CHAN(6, 0x68),
+ AT91_SAMA5D2_CHAN(7, 0x6c),
+ AT91_SAMA5D2_CHAN(8, 0x70),
+ AT91_SAMA5D2_CHAN(9, 0x74),
+ AT91_SAMA5D2_CHAN(10, 0x78),
+ AT91_SAMA5D2_CHAN(11, 0x7c),
};
static unsigned at91_adc_startup_time(unsigned startup_time_min,