summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-07-02 18:02:34 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-07-29 21:31:07 +0200
commitc6c47852c1769125a40f45662ef63d51f588f7c4 (patch)
treef65e9f5139b2544f60bf772d0fd862494a247881
parentiio: core: add accessors 'masklength' (diff)
downloadlinux-c6c47852c1769125a40f45662ef63d51f588f7c4.tar.xz
linux-c6c47852c1769125a40f45662ef63d51f588f7c4.zip
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 <nuno.sa@analog.com> Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com> Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-2-98193bf536a6@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-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);
/*