diff options
author | Srinivas Pandruvada <[email protected]> | 2024-02-04 04:56:17 -0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-02-04 14:02:16 +0000 |
commit | 621c6257128149e45b36ffb973a01c3f3461b893 (patch) | |
tree | 0c4628d977780ac893e37a0505670ee6cc2ee860 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 6f6c72acddf4357fcc83593c20ef9064fb42db92 (diff) |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions