All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id
@ 2016-03-18 15:51 Stefan Eichenberger
  2016-03-18 15:51 ` [PATCH 2/2] iio: adc: max1363: correct reference voltage Stefan Eichenberger
  2016-03-20 10:31 ` [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Jonathan Cameron
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Eichenberger @ 2016-03-18 15:51 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, stefan.eichenberger

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

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
---
 drivers/iio/adc/max1363.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index 929508e..b5d28c0 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -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 },
 	{}
 };
 
-- 
2.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] iio: adc: max1363: correct reference voltage
  2016-03-18 15:51 [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Stefan Eichenberger
@ 2016-03-18 15:51 ` Stefan Eichenberger
  2016-03-20 10:31 ` [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Jonathan Cameron
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Eichenberger @ 2016-03-18 15:51 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, stefan.eichenberger

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

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
---
 drivers/iio/adc/max1363.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index b5d28c0..998dc3c 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[] = {
 	},
 	[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,
-- 
2.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id
  2016-03-18 15:51 [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Stefan Eichenberger
  2016-03-18 15:51 ` [PATCH 2/2] iio: adc: max1363: correct reference voltage Stefan Eichenberger
@ 2016-03-20 10:31 ` Jonathan Cameron
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2016-03-20 10:31 UTC (permalink / raw)
  To: Stefan Eichenberger; +Cc: linux-iio, stefan.eichenberger

On 18/03/16 15:51, Stefan Eichenberger wrote:
> max11644-max11647 had an enum value but were not added to the max1363_id,
> so they where not selectable in the devictree.
> 
> Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
oops - applied to the fixes branch of iio.git,

Thanks,

Jonathan
> ---
>  drivers/iio/adc/max1363.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
> index 929508e..b5d28c0 100644
> --- a/drivers/iio/adc/max1363.c
> +++ b/drivers/iio/adc/max1363.c
> @@ -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 },
>  	{}
>  };
>  
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-20 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-18 15:51 [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Stefan Eichenberger
2016-03-18 15:51 ` [PATCH 2/2] iio: adc: max1363: correct reference voltage Stefan Eichenberger
2016-03-20 10:31 ` [PATCH 1/2] iio: adc: max1363: add missing adc to max1363_id Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.