summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/adjd_s311.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2024-02-04 13:56:17 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-04 15:02:16 +0100
commit621c6257128149e45b36ffb973a01c3f3461b893 (patch)
tree0c4628d977780ac893e37a0505670ee6cc2ee860 /drivers/iio/light/adjd_s311.c
parentiio: move LIGHT_UVA and LIGHT_UVB to the end of iio_modifier (diff)
downloadlinux-621c6257128149e45b36ffb973a01c3f3461b893.tar.xz
linux-621c6257128149e45b36ffb973a01c3f3461b893.zip
iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
When als_capture_sample() is called with usage ID HID_USAGE_SENSOR_TIME_TIMESTAMP, return 0. The HID sensor core ignores the return value for capture_sample() callback, so return value doesn't make difference. But correct the return value to return success instead of -EINVAL. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Link: https://lore.kernel.org/r/20240204125617.2635574-1-srinivas.pandruvada@linux.intel.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/light/adjd_s311.c')
0 files changed, 0 insertions, 0 deletions