1

iio: accel: cros_ec_accel_legacy: make use of iio_get_masklength()

Ue 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-8-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Nuno Sa 2024-07-02 18:02:40 +02:00 committed by Jonathan Cameron
parent 84550e2682
commit bac3b7c43d

View File

@ -62,7 +62,7 @@ static int cros_ec_accel_legacy_read_cmd(struct iio_dev *indio_dev,
return ret; return ret;
} }
for_each_set_bit(i, &scan_mask, indio_dev->masklength) { for_each_set_bit(i, &scan_mask, iio_get_masklength(indio_dev)) {
*data = st->resp->dump.sensor[sensor_num].data[i] * *data = st->resp->dump.sensor[sensor_num].data[i] *
st->sign[i]; st->sign[i];
data++; data++;