]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hid-sensor-rotation: Add timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Tue, 5 Jan 2021 09:35:15 +0000 (17:35 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:05 +0000 (08:52 +0000)
commit0479bbb26e0f0248d9769ee2748c16a22ac4a4a0
tree40a79ffb4e02b084d64b23ce754235391723b294
parent879266ed111788a90460d2f58fc2280a95eb43f8
iio: hid-sensor-rotation: 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-7-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/orientation/hid-sensor-rotation.c