aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-07-05 19:38:51 +0200
committerDmitry Torokhov <[email protected]>2024-07-08 10:01:19 -0700
commitf275b3ae3aeef8831290ecce4156a365fea13737 (patch)
tree7b46faabd8e70cf1f5ed2100725a8d3d3ff5508b
parent366d586684701ee23c1e891664422be64c981c1a (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
-rw-r--r--drivers/input/touchscreen/fsl-imx25-tcq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/fsl-imx25-tcq.c b/drivers/input/touchscreen/fsl-imx25-tcq.c
index 60a7246c5157..a32708652d10 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,