Commit 366d5866 authored by Javier Carrasco's avatar Javier Carrasco Committed by Dmitry Torokhov

Input: qt1050 - constify struct regmap_config

`qt1050_regmap_config` 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/20240705-input-const-regmap_config-v1-1-f712a4494883@gmail.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 5e13bea7
...@@ -208,7 +208,7 @@ static const struct regmap_access_table qt1050_writeable_table = { ...@@ -208,7 +208,7 @@ static const struct regmap_access_table qt1050_writeable_table = {
.n_yes_ranges = ARRAY_SIZE(qt1050_writeable_ranges), .n_yes_ranges = ARRAY_SIZE(qt1050_writeable_ranges),
}; };
static struct regmap_config qt1050_regmap_config = { static const struct regmap_config qt1050_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.max_register = QT1050_RES_CAL, .max_register = QT1050_RES_CAL,
......
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