Commit 7d58fc72 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman

clk: si5351: Constify clock names and struct regmap_config

commit 8234caed upstream.

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: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b82e2aa8
...@@ -68,16 +68,16 @@ struct si5351_driver_data { ...@@ -68,16 +68,16 @@ struct si5351_driver_data {
struct si5351_hw_data *clkout; struct si5351_hw_data *clkout;
}; };
static const char const *si5351_input_names[] = { static const char * const si5351_input_names[] = {
"xtal", "clkin" "xtal", "clkin"
}; };
static const char const *si5351_pll_names[] = { static const char * const si5351_pll_names[] = {
"plla", "pllb", "vxco" "plla", "pllb", "vxco"
}; };
static const char const *si5351_msynth_names[] = { static const char * const si5351_msynth_names[] = {
"ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7" "ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7"
}; };
static const char const *si5351_clkout_names[] = { static const char * const si5351_clkout_names[] = {
"clk0", "clk1", "clk2", "clk3", "clk4", "clk5", "clk6", "clk7" "clk0", "clk1", "clk2", "clk3", "clk4", "clk5", "clk6", "clk7"
}; };
...@@ -207,7 +207,7 @@ static bool si5351_regmap_is_writeable(struct device *dev, unsigned int reg) ...@@ -207,7 +207,7 @@ static bool si5351_regmap_is_writeable(struct device *dev, unsigned int reg)
return true; return true;
} }
static struct regmap_config si5351_regmap_config = { static const struct regmap_config si5351_regmap_config = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
.cache_type = REGCACHE_RBTREE, .cache_type = REGCACHE_RBTREE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment