diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-25 00:47:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 11:21:21 +0300 |
commit | 7a5e98daf6bdba5822aa274f8555199361060658 (patch) | |
tree | 0622155e537a6520daa59b636eae9c3efcdd9903 /drivers/nfc/fdp/fdp.h | |
parent | cb8caa3c6c04c18027258ab34e09bcf87e726f22 (diff) | |
download | linux-7a5e98daf6bdba5822aa274f8555199361060658.tar.xz |
nfc: constify nfc_phy_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_phy_ops (consisting of function pointers), so make it a pointer
to const for correctness and safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/fdp/fdp.h')
-rw-r--r-- | drivers/nfc/fdp/fdp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/fdp/fdp.h b/drivers/nfc/fdp/fdp.h index ead3b21ccae6..dc048d4b977e 100644 --- a/drivers/nfc/fdp/fdp.h +++ b/drivers/nfc/fdp/fdp.h @@ -21,7 +21,7 @@ struct fdp_i2c_phy { uint16_t next_read_size; }; -int fdp_nci_probe(struct fdp_i2c_phy *phy, struct nfc_phy_ops *phy_ops, +int fdp_nci_probe(struct fdp_i2c_phy *phy, const struct nfc_phy_ops *phy_ops, struct nci_dev **ndev, int tx_headroom, int tx_tailroom, u8 clock_type, u32 clock_freq, u8 *fw_vsc_cfg); void fdp_nci_remove(struct nci_dev *ndev); |