summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-17 16:22:54 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-17 20:17:44 +0300
commit8c37bc677af3458dd5598d22467fb913f31c5bb2 (patch)
tree122d401e1553caf13afd27224270eaa66f222fed /drivers
parent71450804c689e4c601cb2a3f9c0ff7182cde84e6 (diff)
downloadlinux-8c37bc677af3458dd5598d22467fb913f31c5bb2.tar.xz
net: ibm: ibmvnic: constify vio_device_id
vio_device_id are not supposed to change at runtime. All functions working with vio_device_id provided by <asm/vio.h> work with const vio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/ibm/ibmvnic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c
index 5ac873173b2e..cb8182f4fdfa 100644
--- a/drivers/net/ethernet/ibm/ibmvnic.c
+++ b/drivers/net/ethernet/ibm/ibmvnic.c
@@ -4022,7 +4022,7 @@ static int ibmvnic_resume(struct device *dev)
return 0;
}
-static struct vio_device_id ibmvnic_device_table[] = {
+static const struct vio_device_id ibmvnic_device_table[] = {
{"network", "IBM,vnic"},
{"", "" }
};