]> www.infradead.org Git - linux.git/commit
regulator: da9121: Constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 18:13:07 +0000 (20:13 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Jul 2024 18:15:54 +0000 (19:15 +0100)
commit05db2e27b92302a43f996561dbb58ecabc3cc85d
tree92348304e23be024dbfa65a5b21d553cea6aaadf
parent82fe56c6fe02fde86784bad7f59a340306967efe
regulator: da9121: Constify struct regmap_config

`da9121_1ch_regmap_config` and `da9121_2ch_regmap_config` are not
modified and can be declared as const to move their data to a
read-only section.

The pointer that references those structs has been converted to const
accordingly.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240704-regulator-const-regmap-v1-1-bce0ddef63ea@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9121-regulator.c