Repository navigation
Commit e18a2ad
iio: Add buffer enable/disable callbacks
This patch adds a enable and disable callback that is called when the
buffer is enabled/disabled. This can be used by buffer implementations that
need to do some setup or teardown work. E.g. a DMA based buffer can use
this to start/stop the DMA transfer.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>1 parent b440655 commit e18a2ad
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
571 | 587 | | |
572 | 588 | | |
573 | 589 | | |
| |||
719 | 735 | | |
720 | 736 | | |
721 | 737 | | |
| 738 | + | |
722 | 739 | | |
723 | 740 | | |
724 | 741 | | |
| |||
753 | 770 | | |
754 | 771 | | |
755 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
756 | 779 | | |
757 | 780 | | |
758 | 781 | | |
759 | 782 | | |
760 | 783 | | |
761 | 784 | | |
762 | 785 | | |
763 | | - | |
| 786 | + | |
764 | 787 | | |
765 | 788 | | |
766 | 789 | | |
767 | 790 | | |
768 | 791 | | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
769 | 796 | | |
770 | 797 | | |
771 | 798 | | |
| |||
778 | 805 | | |
779 | 806 | | |
780 | 807 | | |
| 808 | + | |
781 | 809 | | |
782 | 810 | | |
783 | 811 | | |
| |||
798 | 826 | | |
799 | 827 | | |
800 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
801 | 835 | | |
802 | 836 | | |
803 | 837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments