Skip to content

Commit 5c913eb

Browse files
eichenbergerjic23
authored andcommitted
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>
1 parent 3fb77e2 commit 5c913eb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/iio/adc/max1363.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
13861386
},
13871387
[max11644] = {
13881388
.bits = 12,
1389-
.int_vref_mv = 2048,
1389+
.int_vref_mv = 4096,
13901390
.mode_list = max11644_mode_list,
13911391
.num_modes = ARRAY_SIZE(max11644_mode_list),
13921392
.default_mode = s0to1,
@@ -1396,7 +1396,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
13961396
},
13971397
[max11645] = {
13981398
.bits = 12,
1399-
.int_vref_mv = 4096,
1399+
.int_vref_mv = 2048,
14001400
.mode_list = max11644_mode_list,
14011401
.num_modes = ARRAY_SIZE(max11644_mode_list),
14021402
.default_mode = s0to1,
@@ -1406,7 +1406,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
14061406
},
14071407
[max11646] = {
14081408
.bits = 10,
1409-
.int_vref_mv = 2048,
1409+
.int_vref_mv = 4096,
14101410
.mode_list = max11644_mode_list,
14111411
.num_modes = ARRAY_SIZE(max11644_mode_list),
14121412
.default_mode = s0to1,
@@ -1416,7 +1416,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
14161416
},
14171417
[max11647] = {
14181418
.bits = 10,
1419-
.int_vref_mv = 4096,
1419+
.int_vref_mv = 2048,
14201420
.mode_list = max11644_mode_list,
14211421
.num_modes = ARRAY_SIZE(max11644_mode_list),
14221422
.default_mode = s0to1,

0 commit comments

Comments
 (0)