summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-07-06 13:13:42 +0200
committerMark Brown <broonie@kernel.org>2024-07-08 12:50:16 +0100
commitf21711bbdbf0d95a389bfaad54ce444b46830d58 (patch)
treeb33b42fce3004b4633f9443e37473adb0094f33e /scripts/const_structs.checkpatch
parent0f02ba48cdaf482d6756515e6936c1e23a316eac (diff)
downloadlwn-f21711bbdbf0d95a389bfaad54ce444b46830d58.tar.gz
lwn-f21711bbdbf0d95a389bfaad54ce444b46830d58.zip
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 <linux@weissschuh.net> Link: https://patch.msgid.link/20240706-regmap-const-structs-v1-2-d08c776da787@weissschuh.net Signed-off-by: Mark Brown <broonie@kernel.org>
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