Commit baa9946e authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Walleij
Browse files

pinctrl: constify of_device_id array



of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Acked-by: default avatarMaxime Coquelin <maxime.coquelin@st.com>
Acked-by: default avatarHongzhou Yang <hongzhou.yang@mediatek.com>
Acked-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4024efb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1051,7 +1051,7 @@ static int bcm2835_pinctrl_remove(struct platform_device *pdev)
	return 0;
}

static struct of_device_id bcm2835_pinctrl_match[] = {
static const struct of_device_id bcm2835_pinctrl_match[] = {
	{ .compatible = "brcm,bcm2835-gpio" },
	{}
};
+3 −1
Original line number Diff line number Diff line
@@ -348,7 +348,9 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)
}

static const struct of_device_id mt8135_pctrl_match[] = {
	{ .compatible = "mediatek,mt8135-pinctrl", },
	{
		.compatible = "mediatek,mt8135-pinctrl",
	},
	{ }
};
MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
+3 −1
Original line number Diff line number Diff line
@@ -428,7 +428,9 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)
}

static const struct of_device_id mt8173_pctrl_match[] = {
	{ .compatible = "mediatek,mt8173-pinctrl", },
	{
		.compatible = "mediatek,mt8173-pinctrl",
	},
	{ }
};
MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ static struct mvebu_mpp_mode mv88f6710_mpp_modes[] = {

static struct mvebu_pinctrl_soc_info armada_370_pinctrl_info;

static struct of_device_id armada_370_pinctrl_of_match[] = {
static const struct of_device_id armada_370_pinctrl_of_match[] = {
	{ .compatible = "marvell,mv88f6710-pinctrl" },
	{ },
};
+1 −1
Original line number Diff line number Diff line
@@ -399,7 +399,7 @@ static struct mvebu_mpp_mode mv88f6720_mpp_modes[] = {

static struct mvebu_pinctrl_soc_info armada_375_pinctrl_info;

static struct of_device_id armada_375_pinctrl_of_match[] = {
static const struct of_device_id armada_375_pinctrl_of_match[] = {
	{ .compatible = "marvell,mv88f6720-pinctrl" },
	{ },
};
Loading