ARM: OMAP2+: CM: make cm_ll_data structures as const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 6 Nov 2017 13:15:40 +0000 (14:15 +0100)
committerTony Lindgren <tony@atomide.com>
Mon, 11 Dec 2017 15:40:38 +0000 (07:40 -0800)
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>
arch/arm/mach-omap2/cm2xxx.c
arch/arm/mach-omap2/cm33xx.c
arch/arm/mach-omap2/cm3xxx.c
arch/arm/mach-omap2/cminst44xx.c

index cd90b4c6a06ba300d2261b91428e1666e26a7b72..d5b87f42a96ed2028ebf01a5d4ab94ec84a1fe71 100644 (file)
@@ -385,7 +385,7 @@ void omap2xxx_cm_set_mod_dividers(u32 mpu, u32 dsp, u32 gfx, u32 core, u32 mdm)
  *
  */
 
-static struct cm_ll_data omap2xxx_cm_ll_data = {
+static const struct cm_ll_data omap2xxx_cm_ll_data = {
        .split_idlest_reg       = &omap2xxx_cm_split_idlest_reg,
        .wait_module_ready      = &omap2xxx_cm_wait_module_ready,
 };
index a9e08d89104e54b8cf02a0ad17869c50a57588df..0c9750fca387ffaf555e3b1186a51471a6f1a033 100644 (file)
@@ -342,7 +342,7 @@ struct clkdm_ops am33xx_clkdm_operations = {
        .clkdm_clk_disable      = am33xx_clkdm_clk_disable,
 };
 
-static struct cm_ll_data am33xx_cm_ll_data = {
+static const struct cm_ll_data am33xx_cm_ll_data = {
        .wait_module_ready      = &am33xx_cm_wait_module_ready,
        .wait_module_idle       = &am33xx_cm_wait_module_idle,
        .module_enable          = &am33xx_cm_module_enable,
index 961bc478b9de5519e20fef0555fd574accc58018..ec580fd094a6ae4c2f0b98af4e95b55972fcb7d1 100644 (file)
@@ -662,7 +662,7 @@ void omap3_cm_save_scratchpad_contents(u32 *ptr)
  *
  */
 
-static struct cm_ll_data omap3xxx_cm_ll_data = {
+static const struct cm_ll_data omap3xxx_cm_ll_data = {
        .split_idlest_reg       = &omap3xxx_cm_split_idlest_reg,
        .wait_module_ready      = &omap3xxx_cm_wait_module_ready,
 };
index 8774e983bea110fc84121b407896d209a5235563..2e2274fe023817f2ad715b367f6103d72c02c983 100644 (file)
@@ -512,7 +512,7 @@ struct clkdm_ops am43xx_clkdm_operations = {
        .clkdm_xlate_address    = omap4_clkdm_xlate_address,
 };
 
-static struct cm_ll_data omap4xxx_cm_ll_data = {
+static const struct cm_ll_data omap4xxx_cm_ll_data = {
        .wait_module_ready      = &omap4_cminst_wait_module_ready,
        .wait_module_idle       = &omap4_cminst_wait_module_idle,
        .module_enable          = &omap4_cminst_module_enable,