summaryrefslogtreecommitdiff
path: root/include/linux/root_dev.h
diff options
context:
space:
mode:
authorAntoniu Miclaus <antoniu.miclaus@analog.com>2026-02-02 15:07:12 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-04 00:20:58 +0300
commit1ff6d25d691d1b10c977b61219206c3400a81606 (patch)
tree1f3327c4c663ff83d3f9108826db9caa50ca356d /include/linux/root_dev.h
parent18a1ae3e7350e1798ea9f492959d5000ae5d9bc4 (diff)
downloadlinux-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/root_dev.h')
0 files changed, 0 insertions, 0 deletions