diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-17 18:52:54 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-17 10:17:44 -0700 |
commit | 8c37bc677af3458dd5598d22467fb913f31c5bb2 (patch) | |
tree | 122d401e1553caf13afd27224270eaa66f222fed /drivers/net/ethernet/ibm | |
parent | 71450804c689e4c601cb2a3f9c0ff7182cde84e6 (diff) | |
download | linux-8c37bc677af3458dd5598d22467fb913f31c5bb2.tar.bz2 |
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"}, {"", "" } }; |