From: Javier Carrasco Date: Fri, 5 Jul 2024 17:38:50 +0000 (+0200) Subject: Input: qt1050 - constify struct regmap_config X-Git-Tag: v6.11-rc1~98^2^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=366d586684701ee23c1e891664422be64c981c1a;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240705-input-const-regmap_config-v1-1-f712a4494883@gmail.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/qt1050.c b/drivers/input/keyboard/qt1050.c index 056e9bc260262..5a2592e6293db 100644 --- a/drivers/input/keyboard/qt1050.c +++ b/drivers/input/keyboard/qt1050.c @@ -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,