summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-07-05 19:38:50 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2024-07-08 10:01:18 -0700
commit366d586684701ee23c1e891664422be64c981c1a (patch)
tree889f3d453d9ba22fb188fa786c1d11b03c1a013a /drivers/input
parent5e13bea78df88c7185ce2f06645a7e4d8a2ba042 (diff)
downloadlwn-366d586684701ee23c1e891664422be64c981c1a.tar.gz
lwn-366d586684701ee23c1e891664422be64c981c1a.zip
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/qt1050.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/qt1050.c b/drivers/input/keyboard/qt1050.c
index 056e9bc26026..5a2592e6293d 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,