]> git.baikalelectronics.ru Git - kernel.git/commit
clk: make strings in parent name arrays const
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 31 Mar 2015 18:16:52 +0000 (20:16 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 6 May 2015 05:50:03 +0000 (22:50 -0700)
commitdeaeaab0209f5ec8b8389a4614b1168e423360ce
tree8df8cc5a29369089757c971fcfe94f044f6674b8
parent57d4168f6c535b35577494b3fd9e55e574ef1360
clk: make strings in parent name arrays const

The clk functions and structs declare the parent_name arrays as
'const char **parent_names' which means the parent name strings
are const, but the array itself is not. Use
'const char * const * parent_names' instead which also makes
the array const. This allows us to put the parent_name arrays into
the __initconst section.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[sboyd@codeaurora.org: Squelch 80-character checkpatch warnings]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-composite.c
drivers/clk/clk-mux.c
include/linux/clk-provider.h