]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qlcnic: constify qlcnic_mbx_ops structure
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 11 Oct 2015 11:48:05 +0000 (13:48 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 18:31:18 +0000 (11:31 -0700)
commit1322ac2234c165c21ba82489846c0b33e16bbc82
treeccd2e89e96e226b6ddb39e35e6d262cb1f98091b
parent52b2247888089997c0a13b0e75014d90437d561e
qlcnic: constify qlcnic_mbx_ops structure

The only instance of a qlcnic_mbx_ops structure is never modified.  Thus
the declaration of the structure and all references to the structure type
can be made const.

In the definition of the qlcnic_mailbox structure, the ops field is no
longer lined up with the other fields.  This was left as is, to avoid a lot
of trivial changes on the other lines.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23711389
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c