iio: adc: cc10001_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 f97661c4
+2 -8
1 changed file
+2 -8
1 changed file