summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-07-02 18:02:33 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-07-29 20:31:07 +0100
commitde79583ffe794663c53b77f97be814522d4edc4f (patch)
tree0342cb10ccc789acd0042414d1705a4c81a95016 /tools/perf/scripts/python
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
downloadlinux-de79583ffe794663c53b77f97be814522d4edc4f.tar.gz
linux-de79583ffe794663c53b77f97be814522d4edc4f.zip
iio: core: add accessors 'masklength'
'masklength' is supposed to be an IIO private member. However, drivers (often in trigger handlers) need to access it to iterate over the enabled channels for example (there are other reasons). Hence, a couple of new accessors are being added: * iio_for_each_active_channel() - Iterates over the active channels; * iio_get_masklength() - Get length of the channels mask. The goal of these new accessors is to annotate 'masklength' as private as soon as all drivers accessing it are converted to use the new helpers. 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-1-98193bf536a6@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions