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
7272 regmap_config
7373 regmap_irq
7474 regmap_irq_chip
75+regmap_irq_sub_irq_map
7576 regmap_range
7677 regmap_range_cfg
7778 regulator_ops