NFC: nxp-nci: constify nxp_nci_phy_ops structure
The only instance of a nxp_nci_phy_ops structure is never modified. Thus the declaration of the structure and all references to the structure type can be made const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:

committed by
Samuel Ortiz

parent
893a84e818
commit
7cf6d08caf
@@ -106,7 +106,7 @@ static int nxp_nci_i2c_write(void *phy_id, struct sk_buff *skb)
|
||||
return r;
|
||||
}
|
||||
|
||||
static struct nxp_nci_phy_ops i2c_phy_ops = {
|
||||
static const struct nxp_nci_phy_ops i2c_phy_ops = {
|
||||
.set_mode = nxp_nci_i2c_set_mode,
|
||||
.write = nxp_nci_i2c_write,
|
||||
};
|
||||
|
Reference in New Issue
Block a user