diff options
author | Nuno Sa <nuno.sa@analog.com> | 2024-07-26 10:23:04 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-08-03 11:13:42 +0200 |
commit | 5149e03841faebdcb0762d25dcbe5910568d15ca (patch) | |
tree | 6ea4a24f4252ea97c8520b4bb95e9360b348c53c | |
parent | iio: adc: ti-adc084s021: make use of iio_for_each_active_channel() (diff) | |
download | linux-5149e03841faebdcb0762d25dcbe5910568d15ca.tar.xz linux-5149e03841faebdcb0762d25dcbe5910568d15ca.zip |
iio: adc: ti-ads1015: 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/20240726-dev-iio-masklength-private3-v1-12-82913fc0fb87@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/adc/ti-ads1015.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c index d3363d02f292..ca432c49eab1 100644 --- a/drivers/iio/adc/ti-ads1015.c +++ b/drivers/iio/adc/ti-ads1015.c @@ -456,7 +456,7 @@ static irqreturn_t ads1015_trigger_handler(int irq, void *p) mutex_lock(&data->lock); chan = find_first_bit(indio_dev->active_scan_mask, - indio_dev->masklength); + iio_get_masklength(indio_dev)); ret = ads1015_get_adc_result(data, chan, &res); if (ret < 0) { mutex_unlock(&data->lock); |