Skip to content
Commit 6be72b90 authored by Angelo Compagnucci's avatar Angelo Compagnucci Committed by Jonathan Cameron
Browse files

iio: adc: mcp3422: Checking for error on probe



Some part of the configuration are not touched after the probe
and if something goes wrong on writing the initial one,
the chip will misbehave.
Adding an error checking ensures that the inital configuration will
be written correctly. Moreover ensures that a sensible configuration
will be saved in driver data and used subsequently as intended.

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 e3169994
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment