[PATCH 1/6] clk: make strings in parent name arrays const

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Thu Apr 23 01:48:17 PDT 2015


Halli,

On Thu, Apr 23, 2015 at 10:35:38AM +0200, Sascha Hauer wrote:
> 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>
> Tested-by: Krzysztof Kozlowski <k.kozlowski at samsung.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the Linux-mediatek mailing list