diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-03-20 12:34:11 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-03-27 00:22:49 -0700 |
commit | 217c8df6c9f3ba5b2831c01936a478b27d9c2fa9 (patch) | |
tree | b32b02092bd32c8b70cd0dcd34e28402942914d7 /drivers/clk | |
parent | 8234caed27f7bce141c9fb1f7e76c91a2a66d248 (diff) | |
download | talos-op-linux-217c8df6c9f3ba5b2831c01936a478b27d9c2fa9.tar.gz talos-op-linux-217c8df6c9f3ba5b2831c01936a478b27d9c2fa9.zip |
clk: si570: Constify 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.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-si570.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-si570.c b/drivers/clk/clk-si570.c index fc167b3f8919..20a5aec98b1a 100644 --- a/drivers/clk/clk-si570.c +++ b/drivers/clk/clk-si570.c @@ -393,7 +393,7 @@ static bool si570_regmap_is_writeable(struct device *dev, unsigned int reg) } } -static struct regmap_config si570_regmap_config = { +static const struct regmap_config si570_regmap_config = { .reg_bits = 8, .val_bits = 8, .cache_type = REGCACHE_RBTREE, |