diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-16 06:08:24 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2017-12-23 05:16:24 -0500 |
commit | ab41910dfd5ab8e90b6a93d8c17f39ce2dbb069d (patch) | |
tree | beb9df7238a7b2aecc22271c6d4aec9f73fbaa9b | |
parent | 1a6d490b45e709ad45f4d7457acd435552698ed4 (diff) |
ARM: davinci: make davinci_soc_info structures const
Make davinci_soc_info structures const as they are either passed to the
function davinci_common_init having the argument as const or their field
cpu_clks of type struct clk_lookup * is passed to the function
davinci_clk_init.
So, the fields are never modified and the structures can be const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
[nsekhar@ti.com: minor commit message adjustment]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | arch/arm/mach-davinci/da830.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/da850.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm355.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm365.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index bd88470f3e5c..ed0b7002a9b5 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c | |||
@@ -1194,7 +1194,7 @@ static struct davinci_timer_info da830_timer_info = { | |||
1194 | .clocksource_id = T0_BOT, | 1194 | .clocksource_id = T0_BOT, |
1195 | }; | 1195 | }; |
1196 | 1196 | ||
1197 | static struct davinci_soc_info davinci_soc_info_da830 = { | 1197 | static const struct davinci_soc_info davinci_soc_info_da830 = { |
1198 | .io_desc = da830_io_desc, | 1198 | .io_desc = da830_io_desc, |
1199 | .io_desc_num = ARRAY_SIZE(da830_io_desc), | 1199 | .io_desc_num = ARRAY_SIZE(da830_io_desc), |
1200 | .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, | 1200 | .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, |
diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 07d6f0eb8c82..04a58a3f38ad 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c | |||
@@ -1347,7 +1347,7 @@ int __init da850_register_gpio(void) | |||
1347 | return da8xx_register_gpio(&da850_gpio_platform_data); | 1347 | return da8xx_register_gpio(&da850_gpio_platform_data); |
1348 | } | 1348 | } |
1349 | 1349 | ||
1350 | static struct davinci_soc_info davinci_soc_info_da850 = { | 1350 | static const struct davinci_soc_info davinci_soc_info_da850 = { |
1351 | .io_desc = da850_io_desc, | 1351 | .io_desc = da850_io_desc, |
1352 | .io_desc_num = ARRAY_SIZE(da850_io_desc), | 1352 | .io_desc_num = ARRAY_SIZE(da850_io_desc), |
1353 | .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, | 1353 | .jtag_id_reg = DA8XX_SYSCFG0_BASE + DA8XX_JTAG_ID_REG, |
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index bd50367f654e..938747f20c22 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c | |||
@@ -1006,7 +1006,7 @@ struct platform_device dm355_serial_device[] = { | |||
1006 | } | 1006 | } |
1007 | }; | 1007 | }; |
1008 | 1008 | ||
1009 | static struct davinci_soc_info davinci_soc_info_dm355 = { | 1009 | static const struct davinci_soc_info davinci_soc_info_dm355 = { |
1010 | .io_desc = dm355_io_desc, | 1010 | .io_desc = dm355_io_desc, |
1011 | .io_desc_num = ARRAY_SIZE(dm355_io_desc), | 1011 | .io_desc_num = ARRAY_SIZE(dm355_io_desc), |
1012 | .jtag_id_reg = 0x01c40028, | 1012 | .jtag_id_reg = 0x01c40028, |
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 8be04ec95adf..bcf1494fc66b 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c | |||
@@ -1108,7 +1108,7 @@ struct platform_device dm365_serial_device[] = { | |||
1108 | } | 1108 | } |
1109 | }; | 1109 | }; |
1110 | 1110 | ||
1111 | static struct davinci_soc_info davinci_soc_info_dm365 = { | 1111 | static const struct davinci_soc_info davinci_soc_info_dm365 = { |
1112 | .io_desc = dm365_io_desc, | 1112 | .io_desc = dm365_io_desc, |
1113 | .io_desc_num = ARRAY_SIZE(dm365_io_desc), | 1113 | .io_desc_num = ARRAY_SIZE(dm365_io_desc), |
1114 | .jtag_id_reg = 0x01c40028, | 1114 | .jtag_id_reg = 0x01c40028, |
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index b437c3730f65..6b41e1ca511e 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -899,7 +899,7 @@ struct platform_device dm644x_serial_device[] = { | |||
899 | } | 899 | } |
900 | }; | 900 | }; |
901 | 901 | ||
902 | static struct davinci_soc_info davinci_soc_info_dm644x = { | 902 | static const struct davinci_soc_info davinci_soc_info_dm644x = { |
903 | .io_desc = dm644x_io_desc, | 903 | .io_desc = dm644x_io_desc, |
904 | .io_desc_num = ARRAY_SIZE(dm644x_io_desc), | 904 | .io_desc_num = ARRAY_SIZE(dm644x_io_desc), |
905 | .jtag_id_reg = 0x01c40028, | 905 | .jtag_id_reg = 0x01c40028, |
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index da21353cac45..b72e04ad81ce 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -882,7 +882,7 @@ struct platform_device dm646x_serial_device[] = { | |||
882 | } | 882 | } |
883 | }; | 883 | }; |
884 | 884 | ||
885 | static struct davinci_soc_info davinci_soc_info_dm646x = { | 885 | static const struct davinci_soc_info davinci_soc_info_dm646x = { |
886 | .io_desc = dm646x_io_desc, | 886 | .io_desc = dm646x_io_desc, |
887 | .io_desc_num = ARRAY_SIZE(dm646x_io_desc), | 887 | .io_desc_num = ARRAY_SIZE(dm646x_io_desc), |
888 | .jtag_id_reg = 0x01c40028, | 888 | .jtag_id_reg = 0x01c40028, |