clk: cdce706: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 20 Mar 2015 11:34:12 +0000 (12:34 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 27 Mar 2015 07:23:27 +0000 (00:23 -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>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-cdce706.c

index c386ad25beb4af6abbd58e769ee2f165ff28f6d5..b8e4f8a822e9f334d6db9071136903e88699a280 100644 (file)
@@ -58,7 +58,7 @@
 #define CDCE706_CLKOUT_DIVIDER_MASK    0x7
 #define CDCE706_CLKOUT_ENABLE_MASK     0x8
 
-static struct regmap_config cdce706_regmap_config = {
+static const struct regmap_config cdce706_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .val_format_endian = REGMAP_ENDIAN_NATIVE,