mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
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>
This commit is contained in:
parent
0f02ba48cd
commit
f21711bbdb
3 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue