Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2016de7b authored by Julia Lawall's avatar Julia Lawall Committed by Doug Ledford
Browse files

i40iw: constify i40iw_vf_cqp_ops structure



The i40iw_vf_cqp_ops structure is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 321aebb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ struct i40iw_sc_dev {
	struct i40iw_virt_mem ieq_mem;
	struct i40iw_puda_rsrc *ieq;

	struct i40iw_vf_cqp_ops *iw_vf_cqp_ops;
	const struct i40iw_vf_cqp_ops *iw_vf_cqp_ops;

	struct i40iw_hmc_fpm_misc hmc_fpm_misc;
	u16 qs_handle;
+1 −1
Original line number Diff line number Diff line
@@ -80,6 +80,6 @@ enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp,
	return 0;
}

struct i40iw_vf_cqp_ops iw_vf_cqp_ops = {
const struct i40iw_vf_cqp_ops iw_vf_cqp_ops = {
	i40iw_manage_vf_pble_bp
};
+1 −1
Original line number Diff line number Diff line
@@ -57,6 +57,6 @@ enum i40iw_status_code i40iw_manage_vf_pble_bp(struct i40iw_sc_cqp *cqp,
					       u64 scratch,
					       bool post_sq);

extern struct i40iw_vf_cqp_ops iw_vf_cqp_ops;
extern const struct i40iw_vf_cqp_ops iw_vf_cqp_ops;

#endif