iio: hid-sensor-gyro-3d: Add timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Tue, 5 Jan 2021 09:35:11 +0000 (17:35 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:04 +0000 (08:52 +0000)
commit4648cbd8fb92de705ae2823717d152e4c71fe50d
tree518340e21827731ed766d506e2bf0d10add0c32f
parent4c2617207e3a9da1360e58731007ef47f85d6bf3
iio: hid-sensor-gyro-3d: Add timestamp channel

Each sample has a timestamp field with this change. This timestamp may
be from the sensor hub when present or local kernel timestamp. And the
unit of timestamp is nanosecond.

Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Link: https://lore.kernel.org/r/20210105093515.19135-3-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/hid-sensor-gyro-3d.c