]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: at91_adc: simplify timestamp channel definition
authorDavid Lechner <dlechner@baylibre.com>
Mon, 25 May 2026 01:38:36 +0000 (20:38 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:49 +0000 (11:01 +0100)
commitf97661c4c713fa2bdf2649c76b181772e27cf325
tree16fffd985239980c32ca1a8f3b2ccc3174e1fd72
parent98f548bb911908dd2a60073c006ccebf9ce7c60a
iio: adc: at91_adc: 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.

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