aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Eichenberger <eichest@gmail.com>2016-03-18 11:51:04 -0400
committerJonathan Cameron <jic23@kernel.org>2016-03-20 06:32:14 -0400
commit5c913eb92eb1143806dd295cd2f29e48c00c93fd (patch)
treef74a129505cd9fdb41d11c665c3bb5d8449e0479
parent3fb77e2948ec85bb718418b0a5270ec2e08c2841 (diff)
iio: adc: max1363: correct reference voltage
Swap max11644/max11645 and max 11646/max11647 reference voltages according to datasheet. Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/iio/adc/max1363.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index b5d28c025136..998dc3caad4c 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1386,7 +1386,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1386 }, 1386 },
1387 [max11644] = { 1387 [max11644] = {
1388 .bits = 12, 1388 .bits = 12,
1389 .int_vref_mv = 2048, 1389 .int_vref_mv = 4096,
1390 .mode_list = max11644_mode_list, 1390 .mode_list = max11644_mode_list,
1391 .num_modes = ARRAY_SIZE(max11644_mode_list), 1391 .num_modes = ARRAY_SIZE(max11644_mode_list),
1392 .default_mode = s0to1, 1392 .default_mode = s0to1,
@@ -1396,7 +1396,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1396 }, 1396 },
1397 [max11645] = { 1397 [max11645] = {
1398 .bits = 12, 1398 .bits = 12,
1399 .int_vref_mv = 4096, 1399 .int_vref_mv = 2048,
1400 .mode_list = max11644_mode_list, 1400 .mode_list = max11644_mode_list,
1401 .num_modes = ARRAY_SIZE(max11644_mode_list), 1401 .num_modes = ARRAY_SIZE(max11644_mode_list),
1402 .default_mode = s0to1, 1402 .default_mode = s0to1,
@@ -1406,7 +1406,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1406 }, 1406 },
1407 [max11646] = { 1407 [max11646] = {
1408 .bits = 10, 1408 .bits = 10,
1409 .int_vref_mv = 2048, 1409 .int_vref_mv = 4096,
1410 .mode_list = max11644_mode_list, 1410 .mode_list = max11644_mode_list,
1411 .num_modes = ARRAY_SIZE(max11644_mode_list), 1411 .num_modes = ARRAY_SIZE(max11644_mode_list),
1412 .default_mode = s0to1, 1412 .default_mode = s0to1,
@@ -1416,7 +1416,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
1416 }, 1416 },
1417 [max11647] = { 1417 [max11647] = {
1418 .bits = 10, 1418 .bits = 10,
1419 .int_vref_mv = 4096, 1419 .int_vref_mv = 2048,
1420 .mode_list = max11644_mode_list, 1420 .mode_list = max11644_mode_list,
1421 .num_modes = ARRAY_SIZE(max11644_mode_list), 1421 .num_modes = ARRAY_SIZE(max11644_mode_list),
1422 .default_mode = s0to1, 1422 .default_mode = s0to1,