Commit e3169994 authored by Angelo Compagnucci's avatar Angelo Compagnucci Committed by Jonathan Cameron

iio: adc: mcp3422: Changing initial channel

Initial channel should be the first available channel on
all configurations, so changing to channel 0 available on
all supported chips.
Signed-off-by: default avatarAngelo Compagnucci <angelo.compagnucci@gmail.com>
Reported-by: default avatarMaarten Brock <m.brock@vanmierlo.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent b64a097a
......@@ -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);
......
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