]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: davinci: make argument to davinci_common_init() as const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 16 Oct 2017 10:08:23 +0000 (12:08 +0200)
committerSekhar Nori <nsekhar@ti.com>
Sat, 23 Dec 2017 10:16:24 +0000 (15:46 +0530)
commit1a6d490b45e709ad45f4d7457acd435552698ed4
tree9ca6f8d3f76512a77ef3f6e6303ff938492c692f
parent3984d64aba35f9a317e4afa48f48b4cc6f46d084
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>
arch/arm/mach-davinci/common.c
arch/arm/mach-davinci/include/mach/common.h