Commit 98f548b
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>1 parent c73b6d7 commit 98f548b
1 file changed
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | 447 | | |
458 | 448 | | |
459 | 449 | | |
| |||
614 | 604 | | |
615 | 605 | | |
616 | 606 | | |
617 | | - | |
| 607 | + | |
618 | 608 | | |
619 | 609 | | |
620 | 610 | | |
| |||
0 commit comments