Commit e5629d29 authored by Vincent Cuissard's avatar Vincent Cuissard Committed by Samuel Ortiz

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: default avatarVincent Cuissard <cuissard@marvell.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent fb101c0e
...@@ -288,6 +288,7 @@ int nci_core_reset(struct nci_dev *ndev); ...@@ -288,6 +288,7 @@ int nci_core_reset(struct nci_dev *ndev);
int nci_core_init(struct nci_dev *ndev); int nci_core_init(struct nci_dev *ndev);
int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb); int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb);
int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val); int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val);
int nci_nfcee_discover(struct nci_dev *ndev, u8 action); int nci_nfcee_discover(struct nci_dev *ndev, u8 action);
......
...@@ -1218,7 +1218,7 @@ int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb) ...@@ -1218,7 +1218,7 @@ int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb)
} }
EXPORT_SYMBOL(nci_recv_frame); EXPORT_SYMBOL(nci_recv_frame);
static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb)
{ {
pr_debug("len %d\n", skb->len); pr_debug("len %d\n", skb->len);
...@@ -1236,6 +1236,7 @@ static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb) ...@@ -1236,6 +1236,7 @@ static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb)
return ndev->ops->send(ndev, skb); return ndev->ops->send(ndev, skb);
} }
EXPORT_SYMBOL(nci_send_frame);
/* Send NCI command */ /* Send NCI command */
int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload) 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,6 +1268,7 @@ int nci_send_cmd(struct nci_dev *ndev, __u16 opcode, __u8 plen, void *payload)
return 0; return 0;
} }
EXPORT_SYMBOL(nci_send_cmd);
/* Proprietary commands API */ /* Proprietary commands API */
static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops, static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment