diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 09:21:21 +0100 |
commit | 49545357bf7e134a4012d4652c2df5f78f4485af (patch) | |
tree | 323c85b3dcb284369ae59847c52e6b2426a04cb0 /Documentation/driver-api/nfc | |
parent | 094c45c84d799fb0eb3617632097370843ba3678 (diff) | |
download | linux-rpi-49545357bf7e134a4012d4652c2df5f78f4485af.tar.gz linux-rpi-49545357bf7e134a4012d4652c2df5f78f4485af.tar.bz2 linux-rpi-49545357bf7e134a4012d4652c2df5f78f4485af.zip |
nfc: constify nfc_llc_ops
Neither the core nor the drivers modify the passed pointer to struct
nfc_llc_ops, 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 'Documentation/driver-api/nfc')
-rw-r--r-- | Documentation/driver-api/nfc/nfc-hci.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/driver-api/nfc/nfc-hci.rst b/Documentation/driver-api/nfc/nfc-hci.rst index eb8a1a14e919..f10fe53aa9fe 100644 --- a/Documentation/driver-api/nfc/nfc-hci.rst +++ b/Documentation/driver-api/nfc/nfc-hci.rst @@ -181,7 +181,7 @@ xmit_from_hci(): The llc must be registered with nfc before it can be used. Do that by calling:: - nfc_llc_register(const char *name, struct nfc_llc_ops *ops); + nfc_llc_register(const char *name, const struct nfc_llc_ops *ops); Again, note that the llc does not handle the physical link. It is thus very easy to mix any physical link with any llc for a given chip driver. |