summaryrefslogtreecommitdiff
path: root/drivers/iio/magnetometer
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-07-18 16:38:04 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-08-03 12:13:41 +0300
commit130bdf8293c6b22b3ad1fdbfbd2da70f756de51f (patch)
treef24210bf7970dba251de87f28cc41c5e1aa60eb1 /drivers/iio/magnetometer
parent0718d52bb082770421ec9094e45178d219658376 (diff)
downloadlinux-130bdf8293c6b22b3ad1fdbfbd2da70f756de51f.tar.xz
iio: magnetometer: rm3100-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> Link: https://patch.msgid.link/20240718-dev-iio-masklength-private2-v1-18-8e12cd042906@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/magnetometer')
-rw-r--r--drivers/iio/magnetometer/rm3100-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/rm3100-core.c b/drivers/iio/magnetometer/rm3100-core.c
index 42b70cd42b39..0e03a772fa43 100644
--- a/drivers/iio/magnetometer/rm3100-core.c
+++ b/drivers/iio/magnetometer/rm3100-core.c
@@ -464,7 +464,7 @@ static irqreturn_t rm3100_trigger_handler(int irq, void *p)
struct iio_poll_func *pf = p;
struct iio_dev *indio_dev = pf->indio_dev;
unsigned long scan_mask = *indio_dev->active_scan_mask;
- unsigned int mask_len = indio_dev->masklength;
+ unsigned int mask_len = iio_get_masklength(indio_dev);
struct rm3100_data *data = iio_priv(indio_dev);
struct regmap *regmap = data->regmap;
int ret, i, bit;