Skip to content

Commit 366d586

Browse files
javiercarrascocruzdtor
authored andcommitted
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: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20240705-input-const-regmap_config-v1-1-f712a4494883@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 5e13bea commit 366d586

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/keyboard/qt1050.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static const struct regmap_access_table qt1050_writeable_table = {
208208
.n_yes_ranges = ARRAY_SIZE(qt1050_writeable_ranges),
209209
};
210210

211-
static struct regmap_config qt1050_regmap_config = {
211+
static const struct regmap_config qt1050_regmap_config = {
212212
.reg_bits = 8,
213213
.val_bits = 8,
214214
.max_register = QT1050_RES_CAL,

0 commit comments

Comments
 (0)