Skip to content

Commit

Permalink
ARM: OMAP2+: CM: make cm_ll_data structures as const
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
  • Loading branch information
goyalbhumika authored and tmlind committed Dec 11, 2017
1 parent a529f8d commit 60af58c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/cm2xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/cm33xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/cm3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/cminst44xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60af58c

Please sign in to comment.