History

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.

Thomas Weißschuh committed 2 years ago

Commit f21711b1 parent 0f02ba43 files · +3 −2Browse files

Showing the changes to scripts/const_structs.checkpatch (1 of 3 files). Show all

Unified · Split

scripts/const_structs.checkpatch+1−0
@@ -72,6 +72,7 @@ regmap_bus · 71 unmodified lines
72regmap_config72regmap_config
73regmap_irq73regmap_irq
74regmap_irq_chip74regmap_irq_chip
75regmap_irq_sub_irq_map
75regmap_range76regmap_range
76regmap_range_cfg77regmap_range_cfg
77regulator_ops78regulator_ops