Commit 9bc6a6bb authored by Javier Carrasco's avatar Javier Carrasco Committed by Lee Jones

mfd: gateworks-gsc: Constify struct regmap_bus

`gsc_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-22-0c8785b1331d@gmail.comSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent 3062ba3a
...@@ -160,7 +160,7 @@ static const struct of_device_id gsc_of_match[] = { ...@@ -160,7 +160,7 @@ static const struct of_device_id gsc_of_match[] = {
}; };
MODULE_DEVICE_TABLE(of, gsc_of_match); MODULE_DEVICE_TABLE(of, gsc_of_match);
static struct regmap_bus gsc_regmap_bus = { static const struct regmap_bus gsc_regmap_bus = {
.reg_read = gsc_read, .reg_read = gsc_read,
.reg_write = gsc_write, .reg_write = gsc_write,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment