iio: adc: dln2-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>


Author David Lechner Committer Jonathan Cameron Date Commit Parent c73b6d7f
+1 -11
1 changed file
+1 -11
1 changed file