diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-03-20 07:34:11 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-03-27 03:22:49 -0400 |
commit | 217c8df6c9f3ba5b2831c01936a478b27d9c2fa9 (patch) | |
tree | b32b02092bd32c8b70cd0dcd34e28402942914d7 /drivers/clk | |
parent | 8234caed27f7bce141c9fb1f7e76c91a2a66d248 (diff) |
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) | |||
393 | } | 393 | } |
394 | } | 394 | } |
395 | 395 | ||
396 | static struct regmap_config si570_regmap_config = { | 396 | static const struct regmap_config si570_regmap_config = { |
397 | .reg_bits = 8, | 397 | .reg_bits = 8, |
398 | .val_bits = 8, | 398 | .val_bits = 8, |
399 | .cache_type = REGCACHE_RBTREE, | 399 | .cache_type = REGCACHE_RBTREE, |