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: Fabian Frederick <fabf@skynet.be> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Patrice Chotard <patrice.chotard@st.com> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com> Acked-by: Lee Jones <lee@kernel.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:

committed by
Linus Walleij

parent
4024efb404
commit
baa9946e32
@@ -1114,7 +1114,7 @@ static int at91_pinctrl_parse_functions(struct device_node *np,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id at91_pinctrl_of_match[] = {
|
||||
static const struct of_device_id at91_pinctrl_of_match[] = {
|
||||
{ .compatible = "atmel,sama5d3-pinctrl", .data = &sama5d3_ops },
|
||||
{ .compatible = "atmel,at91sam9x5-pinctrl", .data = &at91sam9x5_ops },
|
||||
{ .compatible = "atmel,at91rm9200-pinctrl", .data = &at91rm9200_ops },
|
||||
@@ -1693,7 +1693,7 @@ static struct gpio_chip at91_gpio_template = {
|
||||
.ngpio = MAX_NB_GPIO_PER_BANK,
|
||||
};
|
||||
|
||||
static struct of_device_id at91_gpio_of_match[] = {
|
||||
static const struct of_device_id at91_gpio_of_match[] = {
|
||||
{ .compatible = "atmel,at91sam9x5-gpio", .data = &at91sam9x5_ops, },
|
||||
{ .compatible = "atmel,at91rm9200-gpio", .data = &at91rm9200_ops },
|
||||
{ /* sentinel */ }
|
||||
|
Reference in New Issue
Block a user