Skip to content

Commit eb50cd5

Browse files
Dmitry Perchanovjic23
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 <dmitry.perchanov@intel.com> Link: https://lore.kernel.org/r/7c1809dc74eb2f58a20595f4d02e76934f8e9219.camel@intel.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent f7b23d1 commit eb50cd5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)