diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-02-28 12:36:42 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2025-03-04 16:17:51 +0300 |
| commit | eb2f9ab1f5133e5a16e3f6303464f5c60012aa05 (patch) | |
| tree | 69aa2c3b63513b26de042263562c875472a5b873 /tools/perf/scripts/python/stat-cpi.py | |
| parent | 62c6b4f1c70e0a3a31df36dd055524cfe6acfa5e (diff) | |
| download | linux-eb2f9ab1f5133e5a16e3f6303464f5c60012aa05.tar.xz | |
iio: adc: ad4851: Fix signedness bug in ad4851_calibrate()
The "c" variable is used to store error codes from ad4851_find_opt()
so it has to be signed for the error handling to work. Change it
to type int.
Fixes: 6250803fe2ec ("iio: adc: ad4851: add ad485x driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/f5e260e9-d7a8-4dae-b7ea-f1bbb1760e60@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
