Skip to contentSkip to conversation

iio: adc: max1363: add missing adc to max1363_id

PATCH In review Stefan Eichenberger 2 participants 3 messages Mar 18, 2016 – Mar 20, 2016 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 iio: adc: max1363: add missing adc to max1363_id

max11644-max11647 had an enum value but were not added to the max1363_id, so they where not selectable in the devictree.

---
 drivers/iio/adc/max1363.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/adc/max1363.c +4 -0
index 929508e..b5d28c0 100644
@@ -1680,6 +1680,10 @@ static const struct i2c_device_id max1363_id[] = {
 	{ "max11615", max11615 },
 	{ "max11616", max11616 },
 	{ "max11617", max11617 },
+	{ "max11644", max11644 },
+	{ "max11645", max11645 },
+	{ "max11646", max11646 },
+	{ "max11647", max11647 },
 	{}
 };
 
Signature · 1 line
2.0.4
#1 lore raw

PATCH 2/2 iio: adc: max1363: correct reference voltage

Swap max11644/max11645 and max 11646/max11647 reference voltages according to datasheet.

---
 drivers/iio/adc/max1363.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/iio/adc/max1363.c +4 -4
index b5d28c0..998dc3c 100644
@@ -1386,7 +1386,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
 	},
 	[max11644] = {
 		.bits = 12,
-		.int_vref_mv = 2048,
+		.int_vref_mv = 4096,
 		.mode_list = max11644_mode_list,
 		.num_modes = ARRAY_SIZE(max11644_mode_list),
 		.default_mode = s0to1,
@@ -1396,7 +1396,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
 	},
 	[max11645] = {
 		.bits = 12,
-		.int_vref_mv = 4096,
+		.int_vref_mv = 2048,
 		.mode_list = max11644_mode_list,
 		.num_modes = ARRAY_SIZE(max11644_mode_list),
 		.default_mode = s0to1,
@@ -1406,7 +1406,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
 	},
 	[max11646] = {
 		.bits = 10,
-		.int_vref_mv = 2048,
+		.int_vref_mv = 4096,
 		.mode_list = max11644_mode_list,
 		.num_modes = ARRAY_SIZE(max11644_mode_list),
 		.default_mode = s0to1,
@@ -1416,7 +1416,7 @@ static const struct max1363_chip_info max1363_chip_info_tbl[] = {
 	},
 	[max11647] = {
 		.bits = 10,
-		.int_vref_mv = 4096,
+		.int_vref_mv = 2048,
 		.mode_list = max11644_mode_list,
 		.num_modes = ARRAY_SIZE(max11644_mode_list),
 		.default_mode = s0to1,
Signature · 1 line
2.0.4
maintainer
#2 lore raw
In reply to Stefan Eichenberger
Quoted 4 lines · Stefan Eichenberger

max11644-max11647 had an enum value but were not added to the max1363_id, so they where not selectable in the devictree.

oops - applied to the fixes branch of iio.git,

Thanks,

Jonathan

Quoted 20 lines
---
 drivers/iio/adc/max1363.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/iio/adc/max1363.c +4 -0
index 929508e..b5d28c0 100644
@@ -1680,6 +1680,10 @@ static const struct i2c_device_id max1363_id[] = {
 	{ "max11615", max11615 },
 	{ "max11616", max11616 },
 	{ "max11617", max11617 },
+	{ "max11644", max11644 },
+	{ "max11645", max11645 },
+	{ "max11646", max11646 },
+	{ "max11647", max11647 },
 	{}
 };