diff mbox series

[RFC,3/3] iio: core annotate masklength as private

Message ID 20240612-dev-iio-scan-private-v1-3-7c75c8e3d30b@analog.com (mailing list archive)
State Changes Requested
Headers show
Series iio: add helpers and accessors for active channels and masklength | expand

Commit Message

Nuno Sa June 12, 2024, 2:20 p.m. UTC
Annotate 'masklength' as private so that we can get checker warnings if
drivers directly access that variable.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
---
 include/linux/iio/iio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index a63888746707..94677240df64 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -609,7 +609,7 @@  struct iio_dev {
 	int				scan_bytes;
 
 	const unsigned long		*available_scan_masks;
-	unsigned			masklength;
+	unsigned			__private masklength;
 	const unsigned long		*active_scan_mask;
 	bool				scan_timestamp;
 	struct iio_trigger		*trig;