Skip to content

Commit 6a68c7d

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: fsl-imx25-tsadc: Constify struct regmap_config
`mx25_tsadc_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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c5416d4 commit 6a68c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/fsl-imx25-tsadc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include <linux/platform_device.h>
1717
#include <linux/regmap.h>
1818

19-
static struct regmap_config mx25_tsadc_regmap_config = {
19+
static const struct regmap_config mx25_tsadc_regmap_config = {
2020
.fast_io = true,
2121
.max_register = 8,
2222
.reg_bits = 32,

0 commit comments

Comments
 (0)