iio: hid-sensor-temperature: Fix issues of timestamp channel
authorYe Xiang <xiang.ye@intel.com>
Wed, 3 Mar 2021 06:36:14 +0000 (14:36 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 6 Mar 2021 17:06:14 +0000 (17:06 +0000)
commit141e7633aa4d2838d1f6ad5c74cccc53547c16ac
tree8235b097e8e9bb27d830118e838760ca54af6756
parent37e89e574dc238a4ebe439543c5ab4fbb2f0311b
iio: hid-sensor-temperature: Fix issues of timestamp channel

This patch fixes 2 issues of timestamp channel:
1. This patch ensures that there is sufficient space and correct
alignment for the timestamp.
2. Correct the timestamp channel scan index.

Fixes: 59d0f2da3569 ("iio: hid: Add temperature sensor support")
Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210303063615.12130-4-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/hid-sensor-temperature.c