diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-02-07 15:38:38 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-04-10 17:23:01 +0200 |
commit | 51570c9d4b3a678f77a50ac139f67290e946ec86 (patch) | |
tree | 2c7bdbe7c725c6ef27de8b355b820c8ac27af316 /drivers/block | |
parent | iio: core: Hide read accesses to iio_dev->currentmode (diff) | |
download | linux-51570c9d4b3a678f77a50ac139f67290e946ec86.tar.xz linux-51570c9d4b3a678f77a50ac139f67290e946ec86.zip |
iio: core: Move the currentmode entry to the opaque structure
This entry should, under no situation, be modified by device
drivers. Now that we have limited its read access to device drivers
really needing it and did so through a dedicated helper, we can
easily move this variable to the opaque structure in order to
prevent any further modification from non-authorized code (out of the
core, basically).
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20220207143840.707510-12-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions