Many structs used by regmap should be const by default. Add entries to const_structs.checkpatch for them for checkpatch.pl to warn on new non-const additions.
Showing the changes to scripts/const_structs.checkpatch (1 of 1 file). Show all
Unified · Split
| @@ -64,7 +64,16 @@ platform_suspend_ops · 63 unmodified lines | |||
| 64 | proc_ops | 64 | proc_ops |
| 65 | proto_ops | 65 | proto_ops |
| 66 | pwm_ops | 66 | pwm_ops |
| 67 | reg_default | ||
| 68 | reg_field | ||
| 69 | reg_sequence | ||
| 67 | regmap_access_table | 70 | regmap_access_table |
| 71 | regmap_bus | ||
| 72 | regmap_config | ||
| 73 | regmap_irq | ||
| 74 | regmap_irq_chip | ||
| 75 | regmap_range | ||
| 76 | regmap_range_cfg | ||
| 68 | regulator_ops | 77 | regulator_ops |
| 69 | reset_control_ops | 78 | reset_control_ops |
| 70 | rpc_pipe_ops | 79 | rpc_pipe_ops |