[PATCH 1/6] clk: make strings in parent name arrays const
Krzysztof Kozlowski
k.kozlowski at samsung.com
Thu Apr 9 00:27:47 PDT 2015
2015-03-31 20:16 GMT+02:00 Sascha Hauer <s.hauer at pengutronix.de>:
> 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 at pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski at samsung.com>
and tested:
Tested-by: Krzysztof Kozlowski <k.kozlowski at samsung.com>
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list