aboutsummaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2024-07-06 13:13:42 +0200
committerMark Brown <[email protected]>2024-07-08 12:50:16 +0100
commitf21711bbdbf0d95a389bfaad54ce444b46830d58 (patch)
treeb33b42fce3004b4633f9443e37473adb0094f33e /scripts/const_structs.checkpatch
parent0f02ba48cdaf482d6756515e6936c1e23a316eac (diff)
regmap-irq: handle const struct regmap_irq_sub_irq_map
The struct instances supplied by the drivers are never modified. Handle them as const in the regmap core allowing the drivers to put them into .rodata. Also add a new entry to const_structs.checkpatch to make sure future instances of this struct already enter the tree as const. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
-rw-r--r--scripts/const_structs.checkpatch1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/const_structs.checkpatch b/scripts/const_structs.checkpatch
index 1bfbb3d7f2e0..cc62980cfa6e 100644
--- a/scripts/const_structs.checkpatch
+++ b/scripts/const_structs.checkpatch
@@ -72,6 +72,7 @@ regmap_bus
regmap_config
regmap_irq
regmap_irq_chip
+regmap_irq_sub_irq_map
regmap_range
regmap_range_cfg
regulator_ops