Commit 5c913eb9 authored by Stefan Eichenberger's avatar Stefan Eichenberger Committed by Jonathan Cameron

iio: adc: max1363: correct reference voltage

Swap max11644/max11645 and max 11646/max11647 reference voltages according
to datasheet.
Signed-off-by: default avatarStefan Eichenberger <stefan.eichenberger@netmodule.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 3fb77e29
...@@ -1386,7 +1386,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = { ...@@ -1386,7 +1386,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
}, },
[max11644] = { [max11644] = {
.bits = 12, .bits = 12,
.int_vref_mv = 2048, .int_vref_mv = 4096,
.mode_list = max11644_mode_list, .mode_list = max11644_mode_list,
.num_modes = ARRAY_SIZE(max11644_mode_list), .num_modes = ARRAY_SIZE(max11644_mode_list),
.default_mode = s0to1, .default_mode = s0to1,
...@@ -1396,7 +1396,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = { ...@@ -1396,7 +1396,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
}, },
[max11645] = { [max11645] = {
.bits = 12, .bits = 12,
.int_vref_mv = 4096, .int_vref_mv = 2048,
.mode_list = max11644_mode_list, .mode_list = max11644_mode_list,
.num_modes = ARRAY_SIZE(max11644_mode_list), .num_modes = ARRAY_SIZE(max11644_mode_list),
.default_mode = s0to1, .default_mode = s0to1,
...@@ -1406,7 +1406,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = { ...@@ -1406,7 +1406,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
}, },
[max11646] = { [max11646] = {
.bits = 10, .bits = 10,
.int_vref_mv = 2048, .int_vref_mv = 4096,
.mode_list = max11644_mode_list, .mode_list = max11644_mode_list,
.num_modes = ARRAY_SIZE(max11644_mode_list), .num_modes = ARRAY_SIZE(max11644_mode_list),
.default_mode = s0to1, .default_mode = s0to1,
...@@ -1416,7 +1416,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = { ...@@ -1416,7 +1416,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
}, },
[max11647] = { [max11647] = {
.bits = 10, .bits = 10,
.int_vref_mv = 4096, .int_vref_mv = 2048,
.mode_list = max11644_mode_list, .mode_list = max11644_mode_list,
.num_modes = ARRAY_SIZE(max11644_mode_list), .num_modes = ARRAY_SIZE(max11644_mode_list),
.default_mode = s0to1, .default_mode = s0to1,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment