projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64fc88
)
iio: adc: ti-ads1015: make use of iio_get_masklength()
author
Nuno Sa
<nuno.sa@analog.com>
Fri, 26 Jul 2024 08:23:04 +0000
(10:23 +0200)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:42 +0000
(10:13 +0100)
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>
drivers/iio/adc/ti-ads1015.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/adc/ti-ads1015.c
b/drivers/iio/adc/ti-ads1015.c
index d3363d02f2921a22a050d66d60ab6ce0ad35367d..ca432c49eab1bc94ee8a6a19eb2e9df5211b1f5b 100644
(file)
--- 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,
- i
ndio_dev->masklength
);
+ i
io_get_masklength(indio_dev)
);
ret = ads1015_get_adc_result(data, chan, &res);
if (ret < 0) {
mutex_unlock(&data->lock);