summaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters/w1-gpio.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 20:20:29 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-25 12:25:29 +0100
commit0a56c0e1e7ad4dc3721e96c499f3074cb6867cfe (patch)
tree9bddd3a4e5f884ab28fb7ce67f191f3586d213b3 /drivers/w1/masters/w1-gpio.c
parentuio: constify of_device_id array (diff)
downloadlinux-0a56c0e1e7ad4dc3721e96c499f3074cb6867cfe.tar.xz
linux-0a56c0e1e7ad4dc3721e96c499f3074cb6867cfe.zip
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/masters/w1-gpio.c')
-rw-r--r--drivers/w1/masters/w1-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c
index b99a932ad901..8f7848c62811 100644
--- a/drivers/w1/masters/w1-gpio.c
+++ b/drivers/w1/masters/w1-gpio.c
@@ -68,7 +68,7 @@ static u8 w1_gpio_read_bit(void *data)
}
#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" },
{}
};