Skip to content

Commit f7b23d1

Browse files
dmipxjic23
authored andcommitted
iio: hid: fix the retval in accel_3d_capture_sample
Return value should be zero for success. This was forgotten for timestamp feature. Verified on RealSense cameras. Fixes: a96cd0f ("iio: accel: hid-sensor-accel-3d: Add timestamp") 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 c9c1d6d commit f7b23d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static int accel_3d_capture_sample(struct hid_sensor_hub_device *hsdev,
280280
hid_sensor_convert_timestamp(
281281
&accel_state->common_attributes,
282282
*(int64_t *)raw_data);
283+
ret = 0;
283284
break;
284285
default:
285286
break;

0 commit comments

Comments
 (0)