iio: hid-sensor-press: Add timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Sat, 31 Jul 2021 03:25:56 +0000 (11:25 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Aug 2021 19:17:36 +0000 (20:17 +0100)
commit3304d2b69a36996fb9bf708310de5cd76a04c09e
treebc9fbe2aa4ba62941dd34321b20d3209cfa3c105
parent394a0150a0644389ce4d587f5c67393308eec28c
iio: hid-sensor-press: 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. The
unit of timestamp is nanosecond.

Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Link: https://lore.kernel.org/r/20210731032556.26813-1-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/hid-sensor-press.c