iio: accel: hid-sensor-accel-3d: Add timestamp
Added timestamp channel. With this change, each sample has a timestamp. This timestamp can be from the sensor hub when present or local kernel timestamp. HID sensors can send timestamp with input data using usage id HID_USAGE_SENSOR_TIME_TIMESTAMP. This timestamp value is converted to nano seconds before pushing this sample to the iio core. Signed-off-by:Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by:
Jonathan Cameron <jic23@kernel.org>
Showing
- drivers/iio/accel/hid-sensor-accel-3d.c 24 additions, 8 deletionsdrivers/iio/accel/hid-sensor-accel-3d.c
- drivers/iio/common/hid-sensors/hid-sensor-attributes.c 31 additions, 5 deletionsdrivers/iio/common/hid-sensors/hid-sensor-attributes.c
- include/linux/hid-sensor-hub.h 4 additions, 0 deletionsinclude/linux/hid-sensor-hub.h
- include/linux/hid-sensor-ids.h 1 addition, 0 deletionsinclude/linux/hid-sensor-ids.h
Loading