]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: pressure: cros_ec_baro: simplify timestamp channel definition
authorDavid Lechner <dlechner@baylibre.com>
Mon, 25 May 2026 01:46:52 +0000 (20:46 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:49 +0000 (11:01 +0100)
commit391c3ec1b15e9f5880812cb045f470ac45c8ba8f
treec5574e8d4ee2efa5f599211169f648597038a013
parent6a0861ce6f725891e8f31971512915a7374a541e
iio: pressure: cros_ec_baro: 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.

Also drop obvious comment while we're at it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/cros_ec_baro.c