Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Javier Carrasco and committed by
Dmitry Torokhov
366d5866 5e13bea7

+1 -1
+1 -1
drivers/input/keyboard/qt1050.c
··· 208 208 .n_yes_ranges = ARRAY_SIZE(qt1050_writeable_ranges), 209 209 }; 210 210 211 - static struct regmap_config qt1050_regmap_config = { 211 + static const struct regmap_config qt1050_regmap_config = { 212 212 .reg_bits = 8, 213 213 .val_bits = 8, 214 214 .max_register = QT1050_RES_CAL,