From: Javier Carrasco Date: Fri, 5 Jul 2024 17:38:51 +0000 (+0200) Subject: Input: fsl-imx25-tcq - constify struct regmap_config X-Git-Tag: v6.11-rc1~98^2^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f275b3ae3aeef8831290ecce4156a365fea13737;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20240705-input-const-regmap_config-v1-2-f712a4494883@gmail.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/fsl-imx25-tcq.c b/drivers/input/touchscreen/fsl-imx25-tcq.c index 60a7246c51577..a32708652d10d 100644 --- a/drivers/input/touchscreen/fsl-imx25-tcq.c +++ b/drivers/input/touchscreen/fsl-imx25-tcq.c @@ -38,7 +38,7 @@ struct mx25_tcq_priv { struct device *dev; }; -static struct regmap_config mx25_tcq_regconfig = { +static const struct regmap_config mx25_tcq_regconfig = { .fast_io = true, .max_register = 0x5c, .reg_bits = 32,