Skip to content

Commit aceed1d

Browse files
committed
iio: frequency: cf_axi_dds: Use iio_get_masklength()
Upstream has removed direct access to indio_dev->masklength. Replace direct access with the iio_get_masklength() helper function to align with this change and to avoid warnings from the sparse checker. Signed-off-by: Nuno Sá <[email protected]>
1 parent ec34a19 commit aceed1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/frequency/cf_axi_dds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ static int cf_axi_dds_update_scan_mode(struct iio_dev *indio_dev,
10411041
struct cf_axi_dds_state *st = iio_priv(indio_dev);
10421042
unsigned int i, sel;
10431043

1044-
for (i = 0; i < indio_dev->masklength; i++) {
1044+
for (i = 0; i < iio_get_masklength(indio_dev); i++) {
10451045

10461046
if (test_bit(i, scan_mask))
10471047
sel = DATA_SEL_DMA;

0 commit comments

Comments
 (0)