Input: qt1050 - constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Fri, 5 Jul 2024 17:38:50 +0000 (19:38 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Jul 2024 17:01:18 +0000 (10:01 -0700)
`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>
drivers/input/keyboard/qt1050.c

index 056e9bc2602620f29e9a205c3f6f18e36e6a9112..5a2592e6293db24cc8cf80cf490ef789fd16681e 100644 (file)
@@ -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,