linux/drivers/iio/common/scmi_sensors
David Lechner c73b6d7f0b iio: common: scmi_sensors: simplify timestamp channel definition
Use IIO_CHAN_SOFT_TIMESTAMP() to define the timestamp channel instead of
manually filling in the struct iio_chan_spec fields. This makes the code
less verbose and mistake-prone.

In fact, there was an error here as the sign should be 's' instead of
'u' which is now changed to 's' by using IIO_CHAN_SOFT_TIMESTAMP().

If we find that this breaks userspace, we will have to revert this
change, but seems unlikely since the timestamp channel is well-known to
be a signed 64-bit integer globally.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2026-05-31 11:01:48 +01:00
..
Kconfig
Makefile iio: scmi: fix spelling of SPDX tag 2021-06-13 17:00:18 +01:00
scmi_iio.c iio: common: scmi_sensors: simplify timestamp channel definition 2026-05-31 11:01:48 +01:00