Skip to content

Commit e5629d2

Browse files
Vincent CuissardSamuel Ortiz
authored andcommitted
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 <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
1 parent fb101c0 commit e5629d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/net/nfc/nci_core.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ int nci_core_reset(struct nci_dev *ndev);
288288
int nci_core_init(struct nci_dev *ndev);
289289

290290
int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
291+
int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb);
291292
int nci_set_config(struct nci_dev *ndev, __u8 id, size_t len, __u8 *val);
292293

293294
int nci_nfcee_discover(struct nci_dev *ndev, u8 action);

net/nfc/nci/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ int nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb)
12181218
}
12191219
EXPORT_SYMBOL(nci_recv_frame);
12201220

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)
12221222
{
12231223
pr_debug("len %d\n", skb->len);
12241224

@@ -1236,6 +1236,7 @@ static int nci_send_frame(struct nci_dev *ndev, struct sk_buff *skb)
12361236

12371237
return ndev->ops->send(ndev, skb);
12381238
}
1239+
EXPORT_SYMBOL(nci_send_frame);
12391240

12401241
/* Send NCI command */
12411242
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)
12671268

12681269
return 0;
12691270
}
1271+
EXPORT_SYMBOL(nci_send_cmd);
12701272

12711273
/* Proprietary commands API */
12721274
static struct nci_driver_ops *ops_cmd_lookup(struct nci_driver_ops *ops,

0 commit comments

Comments
 (0)