diff options
author | Nuno Sa <nuno.sa@analog.com> | 2024-07-18 15:37:56 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-08-03 11:13:40 +0200 |
commit | eec662e3742bac6c9d93f271853dbb415bea7e15 (patch) | |
tree | 335f6aaf7a71bce9d7e12d48ca5e91658992022e /drivers | |
parent | iio: imu: bmi160_core: make use of iio_for_each_active_channel() (diff) | |
download | linux-eec662e3742bac6c9d93f271853dbb415bea7e15.tar.xz linux-eec662e3742bac6c9d93f271853dbb415bea7e15.zip |
iio: imu: bno055: 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-10-8e12cd042906@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/imu/bno055/bno055.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/bno055/bno055.c b/drivers/iio/imu/bno055/bno055.c index 52744dd98e65..ea6519b22b2f 100644 --- a/drivers/iio/imu/bno055/bno055.c +++ b/drivers/iio/imu/bno055/bno055.c @@ -1458,7 +1458,7 @@ static irqreturn_t bno055_trigger_handler(int irq, void *p) * then we split the transfer, skipping the gap. */ for_each_set_bitrange(start, end, iio_dev->active_scan_mask, - iio_dev->masklength) { + iio_get_masklength(iio_dev)) { /* * First transfer will start from the beginning of the first * ones-field in the bitmap |