summaryrefslogtreecommitdiff
path: root/drivers/nfc/mei_phy.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-24 23:47:36 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-25 09:21:21 +0100
commit7a5e98daf6bdba5822aa274f8555199361060658 (patch)
tree0622155e537a6520daa59b636eae9c3efcdd9903 /drivers/nfc/mei_phy.h
parentcb8caa3c6c04c18027258ab34e09bcf87e726f22 (diff)
downloadlinux-7a5e98daf6bdba5822aa274f8555199361060658.tar.gz
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/mei_phy.h')
-rw-r--r--drivers/nfc/mei_phy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/mei_phy.h b/drivers/nfc/mei_phy.h
index 51bd44f5f3b8..2b1edb3eba15 100644
--- a/drivers/nfc/mei_phy.h
+++ b/drivers/nfc/mei_phy.h
@@ -45,7 +45,7 @@ struct nfc_mei_phy {
int hard_fault;
};
-extern struct nfc_phy_ops mei_phy_ops;
+extern const struct nfc_phy_ops mei_phy_ops;
struct nfc_mei_phy *nfc_mei_phy_alloc(struct mei_cl_device *device);
void nfc_mei_phy_free(struct nfc_mei_phy *phy);