]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hid-sensor-als: Add timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Tue, 5 Jan 2021 09:35:12 +0000 (17:35 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:04 +0000 (08:52 +0000)
commitd426b358579fa5d8d67125f5379fd206204ae74e
treec453f61af36eb4bddbb0910f9b6da0759d9907cd
parentcca3b1403766955c1333ec3b60f53196f12610db
iio: hid-sensor-als: 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-4-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/hid-sensor-als.c