Skip to content

Commit f275b3a

Browse files
javiercarrascocruzdtor
authored andcommitted
Input: fsl-imx25-tcq - constify struct regmap_config
`mx25_tcq_regconfig` 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-2-f712a4494883@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 366d586 commit f275b3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/input/touchscreen/fsl-imx25-tcq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct mx25_tcq_priv {
3838
struct device *dev;
3939
};
4040

41-
static struct regmap_config mx25_tcq_regconfig = {
41+
static const struct regmap_config mx25_tcq_regconfig = {
4242
.fast_io = true,
4343
.max_register = 0x5c,
4444
.reg_bits = 32,

0 commit comments

Comments
 (0)