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