projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c34c181
)
iio: ina2xx: fix channel order in software buffer
author
Marc Titinger
<mtitinger@baylibre.com>
Tue, 15 Dec 2015 15:26:22 +0000
(16:26 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 19 Dec 2015 15:06:28 +0000
(15:06 +0000)
POWER and CURRENT were swapped out in the buffer:
was current2 and power3, correct order is power2 and current3.
Signed-off-by: Marc Titinger <mtitinger@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ina2xx-adc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/adc/ina2xx-adc.c
b/drivers/iio/adc/ina2xx-adc.c
index 4c18c4cc89394f732244c84bd26cf86daa35fddf..bd56adaeec05a1abaf36111eed5119d74cbb3364 100644
(file)
--- a/
drivers/iio/adc/ina2xx-adc.c
+++ b/
drivers/iio/adc/ina2xx-adc.c
@@
-428,8
+428,8
@@
static ssize_t ina2xx_shunt_resistor_store(struct device *dev,
static const struct iio_chan_spec ina2xx_channels[] = {
INA2XX_CHAN_VOLTAGE(0, INA2XX_SHUNT_VOLTAGE),
INA2XX_CHAN_VOLTAGE(1, INA2XX_BUS_VOLTAGE),
- INA2XX_CHAN(IIO_
CURRENT, 2, INA2XX_CURRENT
),
- INA2XX_CHAN(IIO_
POWER, 3, INA2XX_POWER
),
+ INA2XX_CHAN(IIO_
POWER, 2, INA2XX_POWER
),
+ INA2XX_CHAN(IIO_
CURRENT, 3, INA2XX_CURRENT
),
IIO_CHAN_SOFT_TIMESTAMP(4),
};