diff options
| author | David Lechner <dlechner@baylibre.com> | 2026-05-24 20:38:34 -0500 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-31 11:01:48 +0100 |
| commit | c73b6d7f0b7f2b2279134746cbacbb880222f374 (patch) | |
| tree | 7ea8110a10a55cc955b62d3637c6fbce2005a2ee /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git | |
| parent | 8a2f9c41b9cc3b7570e4b8476220db11bd6a1030 (diff) | |
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>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
