diff options
| author | Martin Larsson <[email protected]> | 2022-07-20 15:31:54 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-08-15 22:29:57 +0100 |
| commit | bd1d558c9c65cf56623a3a237a2998697586c409 (patch) | |
| tree | bd3effdaabce1a5ee57ea68b7bd26345f85df031 /tools/perf/scripts/python | |
| parent | 9e8284501c8d9e2bde4dfcddaf0201ee7cc8f2a7 (diff) | |
iio: adc: imx8qxp-adc: propagate regulator_get_voltage error
If the ADC vref regulator returns an error, for example, if CONFIG_REGULATOR
is not set, the error will be used as a reference voltage.
Introduce a guard for negative return values instead of unconditionally
casting it to u32.
Acked-by: Haibo Chen <[email protected]>
Signed-off-by: Martin Larsson <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions