diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 04:03:09 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-01-14 08:21:53 -0500 |
commit | 23259f19d0113fd8b7767f6c9f6296dc66bb69e5 (patch) | |
tree | 63a65c1e9396abededb6bfbb0d38e72cdf0c05b8 /drivers/pinctrl | |
parent | 47cf4b326cb31f55b0773023560bbe51aa82aa14 (diff) |
pinctrl: dove: Constify struct regmap_config and of_device_id
The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make also
of_device_id array const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/mvebu/pinctrl-dove.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/mvebu/pinctrl-dove.c b/drivers/pinctrl/mvebu/pinctrl-dove.c index 89a52e15f0ae..95bfd0653e8f 100644 --- a/drivers/pinctrl/mvebu/pinctrl-dove.c +++ b/drivers/pinctrl/mvebu/pinctrl-dove.c | |||
@@ -751,12 +751,12 @@ static struct mvebu_pinctrl_soc_info dove_pinctrl_info = { | |||
751 | 751 | ||
752 | static struct clk *clk; | 752 | static struct clk *clk; |
753 | 753 | ||
754 | static struct of_device_id dove_pinctrl_of_match[] = { | 754 | static const struct of_device_id dove_pinctrl_of_match[] = { |
755 | { .compatible = "marvell,dove-pinctrl", .data = &dove_pinctrl_info }, | 755 | { .compatible = "marvell,dove-pinctrl", .data = &dove_pinctrl_info }, |
756 | { } | 756 | { } |
757 | }; | 757 | }; |
758 | 758 | ||
759 | static struct regmap_config gc_regmap_config = { | 759 | static const struct regmap_config gc_regmap_config = { |
760 | .reg_bits = 32, | 760 | .reg_bits = 32, |
761 | .val_bits = 32, | 761 | .val_bits = 32, |
762 | .reg_stride = 4, | 762 | .reg_stride = 4, |