Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);