summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-16 12:08:23 +0200
committerSekhar Nori <nsekhar@ti.com>2017-12-23 11:16:24 +0100
commit1a6d490b45e709ad45f4d7457acd435552698ed4 (patch)
tree9ca6f8d3f76512a77ef3f6e6303ff938492c692f /arch/arm/mach-davinci/include
parentARM: davinci_all_defconfig: enable support for USB network adaptors (diff)
downloadlinux-1a6d490b45e709ad45f4d7457acd435552698ed4.tar.xz
linux-1a6d490b45e709ad45f4d7457acd435552698ed4.zip
ARM: davinci: make argument to davinci_common_init() as const
Make the function argument of the function davinci_common_init as const as it's memory contents are only copied during a memcpy call. So, the fields of the structure to which the argument soc_info points to never gets modified and therefore the argument can be made const. Add const to the prototype too. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/include')
-rw-r--r--arch/arm/mach-davinci/include/mach/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h
index 037aa66bcac1..433a008ff796 100644
--- a/arch/arm/mach-davinci/include/mach/common.h
+++ b/arch/arm/mach-davinci/include/mach/common.h
@@ -79,7 +79,7 @@ struct davinci_soc_info {
extern struct davinci_soc_info davinci_soc_info;
-extern void davinci_common_init(struct davinci_soc_info *soc_info);
+extern void davinci_common_init(const struct davinci_soc_info *soc_info);
extern void davinci_init_ide(void);
void davinci_restart(enum reboot_mode mode, const char *cmd);
void davinci_init_late(void);