aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/imu/bno055/bno055.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/imu/bno055/bno055.c')
-rw-r--r--drivers/iio/imu/bno055/bno055.c2
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