]> git.baikalelectronics.ru Git - kernel.git/commit
clk: si5351: Constify clock names and struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 20 Mar 2015 11:34:10 +0000 (12:34 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 27 Mar 2015 07:21:39 +0000 (00:21 -0700)
commit6fc2efb3d24b1aba4395d74c3e82f6c24aa009a1
treeda89e020f6d9a5ee96064dd22673c621f5520bfa
parentb9d42074e355efdd86dce8f3eab65795a9a4afdf
clk: si5351: Constify clock names and struct regmap_config

The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const.

Replace doubled const in the arrays of clock names with proper const
pointer to const data. This fixes the warnings:

drivers/clk/clk-si5351.c:71:25: warning: duplicate const
drivers/clk/clk-si5351.c:74:25: warning: duplicate const
drivers/clk/clk-si5351.c:77:25: warning: duplicate const
drivers/clk/clk-si5351.c:80:25: warning: duplicate const

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-si5351.c