diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-03-20 07:34:10 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-03-27 03:21:39 -0400 |
commit | 8234caed27f7bce141c9fb1f7e76c91a2a66d248 (patch) | |
tree | da89e020f6d9a5ee96064dd22673c621f5520bfa | |
parent | d41bd923d3e624462c9d7a2fcff5b62eee5e7f7f (diff) |
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>
-rw-r--r-- | drivers/clk/clk-si5351.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/clk/clk-si5351.c b/drivers/clk/clk-si5351.c index 3b2a66f78755..44ea107cfc67 100644 --- a/drivers/clk/clk-si5351.c +++ b/drivers/clk/clk-si5351.c | |||
@@ -68,16 +68,16 @@ struct si5351_driver_data { | |||
68 | struct si5351_hw_data *clkout; | 68 | struct si5351_hw_data *clkout; |
69 | }; | 69 | }; |
70 | 70 | ||
71 | static const char const *si5351_input_names[] = { | 71 | static const char * const si5351_input_names[] = { |
72 | "xtal", "clkin" | 72 | "xtal", "clkin" |
73 | }; | 73 | }; |
74 | static const char const *si5351_pll_names[] = { | 74 | static const char * const si5351_pll_names[] = { |
75 | "plla", "pllb", "vxco" | 75 | "plla", "pllb", "vxco" |
76 | }; | 76 | }; |
77 | static const char const *si5351_msynth_names[] = { | 77 | static const char * const si5351_msynth_names[] = { |
78 | "ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7" | 78 | "ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7" |
79 | }; | 79 | }; |
80 | static const char const *si5351_clkout_names[] = { | 80 | static const char * const si5351_clkout_names[] = { |
81 | "clk0", "clk1", "clk2", "clk3", "clk4", "clk5", "clk6", "clk7" | 81 | "clk0", "clk1", "clk2", "clk3", "clk4", "clk5", "clk6", "clk7" |
82 | }; | 82 | }; |
83 | 83 | ||
@@ -207,7 +207,7 @@ static bool si5351_regmap_is_writeable(struct device *dev, unsigned int reg) | |||
207 | return true; | 207 | return true; |
208 | } | 208 | } |
209 | 209 | ||
210 | static struct regmap_config si5351_regmap_config = { | 210 | static const struct regmap_config si5351_regmap_config = { |
211 | .reg_bits = 8, | 211 | .reg_bits = 8, |
212 | .val_bits = 8, | 212 | .val_bits = 8, |
213 | .cache_type = REGCACHE_RBTREE, | 213 | .cache_type = REGCACHE_RBTREE, |