Commit ec34a19
committed
iio: dac: ad7303: Use iio helpers for masklength
Upstream has removed direct access to indio_dev->masklength.
Replace the for_each_set_bit loop with the
iio_for_each_active_channel() helper function and direct access
to indio_dev->masklength with iio_get_masklength() to align with this
change and to avoid warnings from the sparse checker.
Signed-off-by: Nuno Sá <nuno.sa@analog.com>1 parent 0c624ce commit ec34a19
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
| |||
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
108 | | - | |
| 106 | + | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
0 commit comments