aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-11-06 08:15:40 -0500
committerTony Lindgren <tony@atomide.com>2017-12-11 10:40:38 -0500
commit60af58cde4f27190c19dba7348e48bb03850eb91 (patch)
tree2422680aaf2af9fb64e6ea6622f9958ffe51def3
parenta529f8de260e33237204f18c6c1540212a9653c7 (diff)
ARM: OMAP2+: CM: make cm_ll_data structures as const
Make these const as they are only getting passed to the functions cm_register and cm_unregister having the arguments as const. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/cm2xxx.c2
-rw-r--r--arch/arm/mach-omap2/cm33xx.c2
-rw-r--r--arch/arm/mach-omap2/cm3xxx.c2
-rw-r--r--arch/arm/mach-omap2/cminst44xx.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/cm2xxx.c b/arch/arm/mach-omap2/cm2xxx.c
index cd90b4c6a06b..d5b87f42a96e 100644
--- a/arch/arm/mach-omap2/cm2xxx.c
+++ b/arch/arm/mach-omap2/cm2xxx.c
@@ -385,7 +385,7 @@ void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core, u32 mdm)
385 * 385 *
386 */ 386 */
387 387
388static struct cm_ll_data omap2xxx_cm_ll_data = { 388static const struct cm_ll_data omap2xxx_cm_ll_data = {
389 .split_idlest_reg = &omap2xxx_cm_split_idlest_reg, 389 .split_idlest_reg = &omap2xxx_cm_split_idlest_reg,
390 .wait_module_ready = &omap2xxx_cm_wait_module_ready, 390 .wait_module_ready = &omap2xxx_cm_wait_module_ready,
391}; 391};
diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c
index a9e08d89104e..0c9750fca387 100644
--- a/arch/arm/mach-omap2/cm33xx.c
+++ b/arch/arm/mach-omap2/cm33xx.c
@@ -342,7 +342,7 @@ struct clkdm_ops am33xx_clkdm_operations = {
342 .clkdm_clk_disable = am33xx_clkdm_clk_disable, 342 .clkdm_clk_disable = am33xx_clkdm_clk_disable,
343}; 343};
344 344
345static struct cm_ll_data am33xx_cm_ll_data = { 345static const struct cm_ll_data am33xx_cm_ll_data = {
346 .wait_module_ready = &am33xx_cm_wait_module_ready, 346 .wait_module_ready = &am33xx_cm_wait_module_ready,
347 .wait_module_idle = &am33xx_cm_wait_module_idle, 347 .wait_module_idle = &am33xx_cm_wait_module_idle,
348 .module_enable = &am33xx_cm_module_enable, 348 .module_enable = &am33xx_cm_module_enable,
diff --git a/arch/arm/mach-omap2/cm3xxx.c b/arch/arm/mach-omap2/cm3xxx.c
index 961bc478b9de..ec580fd094a6 100644
--- a/arch/arm/mach-omap2/cm3xxx.c
+++ b/arch/arm/mach-omap2/cm3xxx.c
@@ -662,7 +662,7 @@ void omap3_cm_save_scratchpad_contents(u32 *ptr)
662 * 662 *
663 */ 663 */
664 664
665static struct cm_ll_data omap3xxx_cm_ll_data = { 665static const struct cm_ll_data omap3xxx_cm_ll_data = {
666 .split_idlest_reg = &omap3xxx_cm_split_idlest_reg, 666 .split_idlest_reg = &omap3xxx_cm_split_idlest_reg,
667 .wait_module_ready = &omap3xxx_cm_wait_module_ready, 667 .wait_module_ready = &omap3xxx_cm_wait_module_ready,
668}; 668};
diff --git a/arch/arm/mach-omap2/cminst44xx.c b/arch/arm/mach-omap2/cminst44xx.c
index 8774e983bea1..2e2274fe0238 100644
--- a/arch/arm/mach-omap2/cminst44xx.c
+++ b/arch/arm/mach-omap2/cminst44xx.c
@@ -512,7 +512,7 @@ struct clkdm_ops am43xx_clkdm_operations = {
512 .clkdm_xlate_address = omap4_clkdm_xlate_address, 512 .clkdm_xlate_address = omap4_clkdm_xlate_address,
513}; 513};
514 514
515static struct cm_ll_data omap4xxx_cm_ll_data = { 515static const struct cm_ll_data omap4xxx_cm_ll_data = {
516 .wait_module_ready = &omap4_cminst_wait_module_ready, 516 .wait_module_ready = &omap4_cminst_wait_module_ready,
517 .wait_module_idle = &omap4_cminst_wait_module_idle, 517 .wait_module_idle = &omap4_cminst_wait_module_idle,
518 .module_enable = &omap4_cminst_module_enable, 518 .module_enable = &omap4_cminst_module_enable,