Commit 0a56c0e1 authored by Fabian Frederick's avatar Fabian Frederick Committed by Greg Kroah-Hartman

w1: 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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4d8beff2
...@@ -166,7 +166,7 @@ static int mxc_w1_remove(struct platform_device *pdev) ...@@ -166,7 +166,7 @@ static int mxc_w1_remove(struct platform_device *pdev)
return 0; return 0;
} }
static struct of_device_id mxc_w1_dt_ids[] = { static const struct of_device_id mxc_w1_dt_ids[] = {
{ .compatible = "fsl,imx21-owire" }, { .compatible = "fsl,imx21-owire" },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
...@@ -72,7 +72,7 @@ struct hdq_data { ...@@ -72,7 +72,7 @@ struct hdq_data {
static int omap_hdq_probe(struct platform_device *pdev); static int omap_hdq_probe(struct platform_device *pdev);
static int omap_hdq_remove(struct platform_device *pdev); static int omap_hdq_remove(struct platform_device *pdev);
static struct of_device_id omap_hdq_dt_ids[] = { static const struct of_device_id omap_hdq_dt_ids[] = {
{ .compatible = "ti,omap3-1w" }, { .compatible = "ti,omap3-1w" },
{} {}
}; };
......
...@@ -68,7 +68,7 @@ static u8 w1_gpio_read_bit(void *data) ...@@ -68,7 +68,7 @@ static u8 w1_gpio_read_bit(void *data)
} }
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
static struct of_device_id w1_gpio_dt_ids[] = { static const struct of_device_id w1_gpio_dt_ids[] = {
{ .compatible = "w1-gpio" }, { .compatible = "w1-gpio" },
{} {}
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment