diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-11-01 12:53:42 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-11-03 20:33:42 +0000 |
commit | 9a5a2483bc60c12d73ac6ca5ac5ab95361a895f4 (patch) | |
tree | 7a1f15c792abb89808c7683a4b88d3b19f2ca713 /drivers/iio | |
parent | 9727098a5286db75b0979a5851aa34a797bab721 (diff) | |
download | linux-stable-9a5a2483bc60c12d73ac6ca5ac5ab95361a895f4.tar.gz linux-stable-9a5a2483bc60c12d73ac6ca5ac5ab95361a895f4.tar.bz2 linux-stable-9a5a2483bc60c12d73ac6ca5ac5ab95361a895f4.zip |
iio: Mark iio_dev::priv member with __private
The member is not supposed to be accessed directly, mark it with
__private to catch the misuses up.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241101105342.3645018-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/industrialio-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index 6a6568d4a2cb..4c543490e56c 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c @@ -1665,7 +1665,7 @@ struct iio_dev *iio_device_alloc(struct device *parent, int sizeof_priv) indio_dev = &iio_dev_opaque->indio_dev; if (sizeof_priv) - indio_dev->priv = (char *)iio_dev_opaque + + ACCESS_PRIVATE(indio_dev, priv) = (char *)iio_dev_opaque + ALIGN(sizeof(*iio_dev_opaque), IIO_DMA_MINALIGN); indio_dev->dev.parent = parent; |