clk: si570: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 20 Mar 2015 11:34:11 +0000 (12:34 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 27 Mar 2015 07:22:49 +0000 (00:22 -0700)
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>
drivers/clk/clk-si570.c

index fc167b3f8919677b56a71c75491201fbf4ac079f..20a5aec98b1a2ca1b88560ccd0336d75073c4bed 100644 (file)
@@ -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,