Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: ti-iodelay: Constify struct regmap_config

`dra7_iodelay_regmap_config` is not modified and can be declared as
const to move its data to a read-only section.

The pointer used to reference that struct has been made const
accordingly.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/20240704-pinctrl-const-regmap_config-v1-1-9d5570f0b9f3@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Javier Carrasco and committed by
Linus Walleij
d801403c d21fe1e9

+2 -2
+2 -2
drivers/pinctrl/ti/pinctrl-ti-iodelay.c
··· 82 82 u32 reg_start_offset; 83 83 u32 reg_nr_per_pin; 84 84 85 - struct regmap_config *regmap_config; 85 + const struct regmap_config *regmap_config; 86 86 }; 87 87 88 88 /** ··· 770 770 return 0; 771 771 } 772 772 773 - static struct regmap_config dra7_iodelay_regmap_config = { 773 + static const struct regmap_config dra7_iodelay_regmap_config = { 774 774 .reg_bits = 32, 775 775 .reg_stride = 4, 776 776 .val_bits = 32,