diff options
author | David S. Miller <davem@davemloft.net> | 2021-07-29 14:28:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 14:28:03 +0300 |
commit | 658e6b1612c6cc680381b6827dca9c3ee8862ee6 (patch) | |
tree | 1f467aaad6506580c04b14c5f54a725333ec6d35 /include | |
parent | 8cb79af5c63ff2dbcab048085302256dd7e8208d (diff) | |
parent | 2695503729dae562aea5e9bbd1722aa5fa1f05bf (diff) | |
download | linux-658e6b1612c6cc680381b6827dca9c3ee8862ee6.tar.xz |
Merge branch 'nfc-const'
Krzysztof Kozlowski says:
====================
nfc: constify, continued (part 2)
On top of:
nfc: constify pointed data
https://lore.kernel.org/lkml/20210726145224.146006-1-krzysztof.kozlowski@canonical.com/
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/nfc/nfc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 85b698794b14..901779138e2b 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h @@ -245,7 +245,7 @@ static inline void nfc_set_drvdata(struct nfc_dev *dev, void *data) * * @dev: The nfc device */ -static inline void *nfc_get_drvdata(struct nfc_dev *dev) +static inline void *nfc_get_drvdata(const struct nfc_dev *dev) { return dev_get_drvdata(&dev->dev); } @@ -255,7 +255,7 @@ static inline void *nfc_get_drvdata(struct nfc_dev *dev) * * @dev: The nfc device whose name to return */ -static inline const char *nfc_device_name(struct nfc_dev *dev) +static inline const char *nfc_device_name(const struct nfc_dev *dev) { return dev_name(&dev->dev); } |