aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNuno Sa <[email protected]>2024-07-02 18:02:34 +0200
committerJonathan Cameron <[email protected]>2024-07-29 20:31:07 +0100
commitc6c47852c1769125a40f45662ef63d51f588f7c4 (patch)
treef65e9f5139b2544f60bf772d0fd862494a247881
parentde79583ffe794663c53b77f97be814522d4edc4f (diff)
iio: core: make use of iio_get_masklength()
Use iio_get_masklength() to access '.masklength' so it can be annotated as __private when there are no more direct users of it. Signed-off-by: Nuno Sa <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r--drivers/iio/industrialio-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
index 0f6cda7ffe45..e6fad8a6a1fc 100644
--- a/drivers/iio/industrialio-core.c
+++ b/drivers/iio/industrialio-core.c
@@ -1912,7 +1912,7 @@ static void iio_sanity_check_avail_scan_masks(struct iio_dev *indio_dev)
int i;
av_masks = indio_dev->available_scan_masks;
- masklength = indio_dev->masklength;
+ masklength = iio_get_masklength(indio_dev);
longs_per_mask = BITS_TO_LONGS(masklength);
/*