diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 15:22:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-17 19:17:44 +0200 |
commit | 8c37bc677af3458dd5598d22467fb913f31c5bb2 (patch) | |
tree | 122d401e1553caf13afd27224270eaa66f222fed /drivers/net/ethernet/ibm | |
parent | net: ibm: ibmveth: constify vio_device_id (diff) | |
download | linux-8c37bc677af3458dd5598d22467fb913f31c5bb2.tar.xz linux-8c37bc677af3458dd5598d22467fb913f31c5bb2.zip |
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/net/ethernet/ibm')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
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"}, {"", "" } }; |