Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 1/3] iio: adc: mcp3422: Changing initial channel
@ 2017-06-28 21:53 Angelo Compagnucci
  2017-06-28 21:53 ` [PATCH 2/3] iio: adc: mcp3422: Checking for error on probe Angelo Compagnucci
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Angelo Compagnucci @ 2017-06-28 21:53 UTC (permalink / raw)
  To: linux-iio; +Cc: Angelo Compagnucci, Jonathan Cameron

Initial channel should be the first available channel on
all configurations, so changing to channel 0 available on
all supported chips.

Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
 drivers/iio/adc/mcp3422.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/mcp3422.c b/drivers/iio/adc/mcp3422.c
index 254135e..6737df8 100644
--- a/drivers/iio/adc/mcp3422.c
+++ b/drivers/iio/adc/mcp3422.c
@@ -379,7 +379,7 @@ static int mcp3422_probe(struct i2c_client *client,
 
 	/* meaningful default configuration */
 	config = (MCP3422_CONT_SAMPLING
-		| MCP3422_CHANNEL_VALUE(1)
+		| MCP3422_CHANNEL_VALUE(0)
 		| MCP3422_PGA_VALUE(MCP3422_PGA_1)
 		| MCP3422_SAMPLE_RATE_VALUE(MCP3422_SRATE_240));
 	mcp3422_update_config(adc, config);
-- 
2.7.4

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

end of thread, other threads:[~2017-07-04 19:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-28 21:53 [PATCH 1/3] iio: adc: mcp3422: Changing initial channel Angelo Compagnucci
2017-06-28 21:53 ` [PATCH 2/3] iio: adc: mcp3422: Checking for error on probe Angelo Compagnucci
2017-07-01 10:07   ` Jonathan Cameron
2017-07-03  8:42     ` Maarten Brock
2017-07-03 11:10       ` jic23
2017-07-03 12:01         ` Maarten Brock
2017-07-03 12:11           ` Mike Looijmans
2017-07-03 12:25           ` jic23
2017-07-03 21:04             ` Angelo Compagnucci
2017-07-04 19:57               ` Jonathan Cameron
2017-06-28 21:53 ` [PATCH 3/3] iio: adc: mcp3422: cosmetic fixes Angelo Compagnucci
2017-07-01 10:12   ` Jonathan Cameron
2017-07-01 10:06 ` [PATCH 1/3] iio: adc: mcp3422: Changing initial channel Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox