diff options
author | 2024-10-05 12:06:17 +0200 | |
---|---|---|
committer | 2024-10-16 23:13:38 +0200 | |
commit | 3120b5f218ca8e2b375d496e2ff3f4f861fbc013 (patch) | |
tree | 6880dae00bd4614bdb9932ddac46ca86696de351 /scripts/lib/kdoc/kdoc_files.py | |
parent | power: supply: core: unexport power_supply_property_is_writeable() (diff) | |
download | linux-rng-3120b5f218ca8e2b375d496e2ff3f4f861fbc013.tar.xz linux-rng-3120b5f218ca8e2b375d496e2ff3f4f861fbc013.zip |
power: supply: core: mark attribute arrays as ro_after_init
The attribute arrays are only modified during the __init phase.
To protect them against intentional or accidental modification,
mark them as __ro_after_init.
To make sure no modifications are introduced, also mark the return
values of the accessors as const.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241005-power-supply-cleanups-v1-3-45303b2d0a4d@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions