diff options
author | Vincent Cuissard <cuissard@marvell.com> | 2015-10-26 05:27:38 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-26 23:16:14 -0400 |
commit | e5629d29470134af1954d2bbe45c4f2b73f68ee9 (patch) | |
tree | d081e47d07ccbde48a1f9ff674d27f7bb5aa7265 /net/nfc | |
parent | fb101c0e9cc635b811b413b26a6690240c303f54 (diff) |
NFC: NCI: export nci_send_frame and nci_send_cmd function
Export nci_send_frame and nci_send_cmd symbols to allow drivers
to use it. This is needed for example if NCI is used during
firmware download phase.
Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/nci/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/nfc/nci/core.c b/net/nfc/nci/core.c index ecf420d43a6d..2da03c08dad2 100644 --- a/net/nfc/nci/core.c +++ b/net/nfc/nci/core.c | |||
@@ -1218,7 +1218,7 @@ int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) | |||
1218 | } | 1218 | } |
1219 | EXPORT_SYMBOL(nci_recv_frame); | 1219 | EXPORT_SYMBOL(nci_recv_frame); |
1220 | 1220 | ||
1221 | static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) | 1221 | int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) |
1222 | { | 1222 | { |
1223 | pr_debug("len %d\n", skb->len); | 1223 | pr_debug("len %d\n", skb->len); |
1224 | 1224 | ||
@@ -1236,6 +1236,7 @@ static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) | |||
1236 | 1236 | ||
1237 | return ndev->ops->send(ndev, skb); | 1237 | return ndev->ops->send(ndev, skb); |
1238 | } | 1238 | } |
1239 | EXPORT_SYMBOL(nci_send_frame); | ||
1239 | 1240 | ||
1240 | /* Send NCI command */ | 1241 | /* Send NCI command */ |
1241 | int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload) | 1242 | int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload) |
@@ -1267,6 +1268,7 @@ int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload) | |||
1267 | 1268 | ||
1268 | return 0; | 1269 | return 0; |
1269 | } | 1270 | } |
1271 | EXPORT_SYMBOL(nci_send_cmd); | ||
1270 | 1272 | ||
1271 | /* Proprietary commands API */ | 1273 | /* Proprietary commands API */ |
1272 | static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops, | 1274 | static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops, |