summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/fm10k/fm10k_pf.h
diff options
context:
space:
mode:
authorBruce Allan <bruce.w.allan@intel.com>2015-12-09 00:50:39 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-12-22 14:10:01 +0100
commitf329ad732b21dc86d477b47300805dd16178f9ca (patch)
tree44f7b3a63fbcf9fde5a7b66b109fda12125760e4 /drivers/net/ethernet/intel/fm10k/fm10k_pf.h
parentfm10k: address operator not needed when declaring function pointers (diff)
downloadlinux-f329ad732b21dc86d477b47300805dd16178f9ca.tar.xz
linux-f329ad732b21dc86d477b47300805dd16178f9ca.zip
fm10k: constify fm10k_mac_ops, fm10k_iov_ops and fm10k_info structures
These structures never change so declare them as const. Signed-off-by: Bruce Allan <bruce.w.allan@intel.com> Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k/fm10k_pf.h')
-rw-r--r--drivers/net/ethernet/intel/fm10k/fm10k_pf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/fm10k/fm10k_pf.h b/drivers/net/ethernet/intel/fm10k/fm10k_pf.h
index 337859260b9b..b2d96b45ca3c 100644
--- a/drivers/net/ethernet/intel/fm10k/fm10k_pf.h
+++ b/drivers/net/ethernet/intel/fm10k/fm10k_pf.h
@@ -133,5 +133,5 @@ s32 fm10k_iov_msg_mac_vlan_pf(struct fm10k_hw *, u32 **,
s32 fm10k_iov_msg_lport_state_pf(struct fm10k_hw *, u32 **,
struct fm10k_mbx_info *);
-extern struct fm10k_info fm10k_pf_info;
+extern const struct fm10k_info fm10k_pf_info;
#endif /* _FM10K_PF_H */