Commit e18dae2
committed
iio: adc: adrv9002: rearrange 'adrv9002_attr_show'
Follow the logic of the rest of the driver and just lock() the complete
function. This makes it simpler (and most of the settings need to be
locked anyways) in a following patch to add support for the initial
calibrations attribute.
Signed-off-by: Nuno Sa <nuno.sa@analog.com>1 parent 1e555d9 commit e18dae2
File tree
1 file changed
+14
-11
lines changed1 file changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | | - | |
558 | 557 | | |
559 | 558 | | |
560 | | - | |
| 559 | + | |
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
564 | 563 | | |
565 | | - | |
| 564 | + | |
566 | 565 | | |
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
570 | | - | |
571 | | - | |
| 569 | + | |
572 | 570 | | |
573 | 571 | | |
574 | 572 | | |
575 | 573 | | |
576 | 574 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | 575 | | |
581 | 576 | | |
582 | 577 | | |
583 | 578 | | |
584 | 579 | | |
585 | 580 | | |
586 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
587 | 585 | | |
588 | 586 | | |
589 | 587 | | |
590 | 588 | | |
591 | | - | |
| 589 | + | |
| 590 | + | |
592 | 591 | | |
593 | | - | |
| 592 | + | |
594 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
0 commit comments