diff options
| author | Antoniu Miclaus <antoniu.miclaus@analog.com> | 2026-02-02 15:07:12 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-04 00:20:58 +0300 |
| commit | 1ff6d25d691d1b10c977b61219206c3400a81606 (patch) | |
| tree | 1f3327c4c663ff83d3f9108826db9caa50ca356d /include/linux/moduleloader.h | |
| parent | 18a1ae3e7350e1798ea9f492959d5000ae5d9bc4 (diff) | |
| download | linux-1ff6d25d691d1b10c977b61219206c3400a81606.tar.xz | |
iio: light: ltr501: return proper error code from ltr501_get_gain_index()
Return -EINVAL instead of -1 when no matching gain value is found
in the gain table. Update the callers to propagate this error directly
rather than overwriting it with -EINVAL.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Waqar Hameed <waqar.hameed@axis.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/moduleloader.h')
0 files changed, 0 insertions, 0 deletions
