summaryrefslogtreecommitdiff
path: root/drivers/misc/carma
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-03-16 19:20:26 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-16 20:10:28 (GMT)
commit6893d9b51093cf499ee6217e98c50006ec2727c6 (patch)
tree3b9072435cc7199e0ccbac7887591a1df0ff097d /drivers/misc/carma
parent208d51154c8d7f2c3808b4401132233c5ab21572 (diff)
downloadlinux-6893d9b51093cf499ee6217e98c50006ec2727c6.tar.xz
misc: 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/misc/carma')
-rw-r--r--drivers/misc/carma/carma-fpga-program.c2
-rw-r--r--drivers/misc/carma/carma-fpga.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/carma/carma-fpga-program.c b/drivers/misc/carma/carma-fpga-program.c
index 06166ac..fff8c43 100644
--- a/drivers/misc/carma/carma-fpga-program.c
+++ b/drivers/misc/carma/carma-fpga-program.c
@@ -1142,7 +1142,7 @@ out_return:
return ret;
}
-static struct of_device_id fpga_of_match[] = {
+static const struct of_device_id fpga_of_match[] = {
{ .compatible = "carma,fpga-programmer", },
{},
};
diff --git a/drivers/misc/carma/carma-fpga.c b/drivers/misc/carma/carma-fpga.c
index 68cdfe1..5aba3fd 100644
--- a/drivers/misc/carma/carma-fpga.c
+++ b/drivers/misc/carma/carma-fpga.c
@@ -1486,7 +1486,7 @@ static int data_of_remove(struct platform_device *op)
return 0;
}
-static struct of_device_id data_of_match[] = {
+static const struct of_device_id data_of_match[] = {
{ .compatible = "carma,carma-fpga", },
{},
};