diff options
| author | Aldo Conte <aldocontelk@gmail.com> | 2026-03-25 12:32:16 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-04-11 14:29:48 +0200 |
| commit | 4f87ef4048d818fcc3820193bdda03a342c99ef8 (patch) | |
| tree | d993a0697e6366587a7ff888eed657368c4d3b57 /scripts | |
| parent | 6fb4bd8834f47b075a042def3b730773eb6fe7b4 (diff) | |
| download | kernel-4f87ef4048d818fcc3820193bdda03a342c99ef8.tar.gz | |
iio: light: veml6070: fix veml6070_read() return value
commit d0b224cf9ab12e86a4d1ca55c760dfaa5c19cbe7 upstream.
veml6070_read() computes the sensor value in ret but
returns 0 instead of the actual result. This causes
veml6070_read_raw() to always report 0.
Return the computed value instead of 0.
Running make W=1 returns no errors. I was unable
to test the patch because I do not have the hardware.
Found by code inspection.
Fixes: fc38525135dd ("iio: light: veml6070: use guard to handle mutex")
Signed-off-by: Aldo Conte <aldocontelk@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
