summaryrefslogtreecommitdiff
path: root/drivers/net/enic/vnic_vic.c
diff options
context:
space:
mode:
authorRoopa Prabhu <roprabhu@cisco.com>2011-03-29 20:36:02 (GMT)
committerDavid S. Miller <davem@davemloft.net>2011-03-31 04:39:25 (GMT)
commit756462f3434ec4807a61f884d59358092a03fc15 (patch)
tree0d953f99ae7a7e781e34e49ad2ab6aa706b21675 /drivers/net/enic/vnic_vic.c
parent18714ff8de7a000e7642561cabaf8ace8d082e9f (diff)
downloadlinux-fsl-qoriq-756462f3434ec4807a61f884d59358092a03fc15.tar.xz
enic: Cleanups in port profile helper code
This patch does the following: - Introduces a new macro VIC_PROVINFO_ADD_TLV - Adds a new OS type in vic_generic_prov_os_type - Changes some vic_provinfo* helper routine args to constants Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David Wang <dwang2@cisco.com> Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic/vnic_vic.c')
-rw-r--r--drivers/net/enic/vnic_vic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/enic/vnic_vic.c b/drivers/net/enic/vnic_vic.c
index 4725b79..24ef8cd 100644
--- a/drivers/net/enic/vnic_vic.c
+++ b/drivers/net/enic/vnic_vic.c
@@ -23,7 +23,8 @@
#include "vnic_vic.h"
-struct vic_provinfo *vic_provinfo_alloc(gfp_t flags, u8 *oui, u8 type)
+struct vic_provinfo *vic_provinfo_alloc(gfp_t flags, const u8 *oui,
+ const u8 type)
{
struct vic_provinfo *vp;
@@ -47,7 +48,7 @@ void vic_provinfo_free(struct vic_provinfo *vp)
}
int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length,
- void *value)
+ const void *value)
{
struct vic_provinfo_tlv *tlv;