aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-10-05 10:06:17 +0000
committerSebastian Reichel <[email protected]>2024-10-16 21:13:38 +0000
commit3120b5f218ca8e2b375d496e2ff3f4f861fbc013 (patch)
tree6880dae00bd4614bdb9932ddac46ca86696de351 /drivers/cdx/controller/cdx_controller.c
parentpower: supply: core: unexport power_supply_property_is_writeable() (diff)
downloadkernel-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