iio: hid-sensor-incl-3d: Add timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Tue, 5 Jan 2021 09:35:14 +0000 (17:35 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:04 +0000 (08:52 +0000)
commit04fe70d1b8aca1143304edf49c4f730753b06dcf
tree2b62d3e533ba173a766ac5df508f50e834b6a4aa
parenta6bea3d5fe6ff483199da4badce159e2ed78bfa7
iio: hid-sensor-incl-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-6-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/orientation/hid-sensor-incl-3d.c