Skip to content

Commit f7b23d1

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)