diff options
| author | Thomas Weißschuh <[email protected]> | 2024-10-05 10:06:17 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2024-10-16 21:13:38 +0000 |
| commit | 3120b5f218ca8e2b375d496e2ff3f4f861fbc013 (patch) | |
| tree | 6880dae00bd4614bdb9932ddac46ca86696de351 /drivers/cdx/controller/cdx_controller.c | |
| parent | power: supply: core: unexport power_supply_property_is_writeable() (diff) | |
| download | kernel-3120b5f218ca8e2b375d496e2ff3f4f861fbc013.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
