summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/i40e/i40e_client.h
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-05-01 14:07:23 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-05-05 23:32:59 -0700
commit3949c4ac8cfa8ab3518a326c72eff1a2ff489bb9 (patch)
treea8f3d311522d4f8f61f37392229f61e58ed3a205 /drivers/net/ethernet/intel/i40e/i40e_client.h
parentce927db48721235b3a08142b6d9f9a906e4e626f (diff)
i40e: constify i40e_client_ops structure
The i40e_client_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_client.h')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_client.h b/drivers/net/ethernet/intel/i40e/i40e_client.h
index bf6b453d93a1..a4601d97fb24 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_client.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_client.h
@@ -217,7 +217,7 @@ struct i40e_client {
#define I40E_CLIENT_FLAGS_LAUNCH_ON_PROBE BIT(0)
#define I40E_TX_FLAGS_NOTIFY_OTHER_EVENTS BIT(2)
enum i40e_client_type type;
- struct i40e_client_ops *ops; /* client ops provided by the client */
+ const struct i40e_client_ops *ops; /* client ops provided by the client */
};
static inline bool i40e_client_is_registered(struct i40e_client *client)