Skip to content

Commit

Permalink
Input: qt1050 - constify struct regmap_config
Browse files Browse the repository at this point in the history
`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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
javiercarrascocruz authored and dtor committed Jul 8, 2024
1 parent 5e13bea commit 366d586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/keyboard/qt1050.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ static const struct regmap_access_table qt1050_writeable_table = {
.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,
.val_bits = 8,
.max_register = QT1050_RES_CAL,
Expand Down

0 comments on commit 366d586

Please sign in to comment.