Skip to content

Commit eb50cd5

Browse files
dmipxjic23
authored andcommitted
iio: hid: fix the retval in gyro_3d_capture_sample
Return value should be zero for success. This was forgotten for timestamp feature. Verified on RealSense cameras. Fixes: 4648cbd ("iio: hid-sensor-gyro-3d: Add timestamp channel") Signed-off-by: Dmitry Perchanov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent f7b23d1 commit eb50cd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/gyro/hid-sensor-gyro-3d.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ static int gyro_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
231231
gyro_state->timestamp =
232232
hid_sensor_convert_timestamp(&gyro_state->common_attributes,
233233
*(s64 *)raw_data);
234+
ret = 0;
234235
break;
235236
default:
236237
break;

0 commit comments

Comments
 (0)