]> www.infradead.org Git - users/willy/xarray.git/commit
iio: core: annotate masklength as __private
authorNuno Sa <nuno.sa@analog.com>
Fri, 26 Jul 2024 08:23:15 +0000 (10:23 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:43 +0000 (10:13 +0100)
commitf44e94afbb340be90100f8a172ebb14a9e717c8b
tree1f545239140f7fd8a97254fc2860e5331d784c75
parenta71cfa4c7783798d62b90143d14159470f5304d0
iio: core: annotate masklength as __private

Now that all users are using the proper accessors, we can mark
masklength as __private so that no one tries to write. We also get help
from checkers in warning us in case someone does it.

To access the private field from IIO core code, we need to use the
ACCESS_PRIVATE() macro.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240726-dev-iio-masklength-private3-v1-23-82913fc0fb87@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c
include/linux/iio/iio.h