Commit 5d8c3c24 authored by Nuno Sa's avatar Nuno Sa Committed by Jonathan Cameron

iio: accel: adxl367: 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: default avatarNuno Sa <nuno.sa@analog.com>
Reviewed-by: default avatarAlexandru Ardelean <aardelean@baylibre.com>
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-4-98193bf536a6@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 52fe020e
...@@ -1220,7 +1220,7 @@ static int adxl367_update_scan_mode(struct iio_dev *indio_dev, ...@@ -1220,7 +1220,7 @@ static int adxl367_update_scan_mode(struct iio_dev *indio_dev,
return ret; return ret;
st->fifo_set_size = bitmap_weight(active_scan_mask, st->fifo_set_size = bitmap_weight(active_scan_mask,
indio_dev->masklength); iio_get_masklength(indio_dev));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment