diff options
| author | Giorgi Tchankvetadze <giorgi@tchankvetadze.com> | 2026-07-31 17:20:48 +0400 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-08-05 00:03:28 +0100 |
| commit | 8756acd30919a3e9f547ea4a1d4b7f7895f4d340 (patch) | |
| tree | 6ce3f66c968e82a297053e16585674797caa8bde /include/linux/workqueue.h | |
| parent | d240b0b8a1ceeacc618890de971d9f4e40661c27 (diff) | |
iio: light: cm32181: return zero after writing calibscale
The write_raw callback is documented to return 0 on success or a
negative error code. However, the IIO_CHAN_INFO_CALIBSCALE case
returns 'val' (the user-supplied value) instead of 0.
Fix it by returning 0 on success, matching the behavior of other
calibscale implementations in the subsystem.
Fixes: 971672c0b3cc ("iio: add Capella CM32181 ambient light sensor driver.")
Signed-off-by: Giorgi Tchankvetadze <giorgi@tchankvetadze.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
