Commit 0110a87d authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Make another function static

This patch makes a needlessly global function static.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 6f4ce64b
...@@ -139,6 +139,19 @@ static int cmtp_msgnum_get(struct cmtp_session *session) ...@@ -139,6 +139,19 @@ static int cmtp_msgnum_get(struct cmtp_session *session)
return session->msgnum; return session->msgnum;
} }
static void cmtp_send_capimsg(struct cmtp_session *session, struct sk_buff *skb)
{
struct cmtp_scb *scb = (void *) skb->cb;
BT_DBG("session %p skb %p len %d", session, skb, skb->len);
scb->id = -1;
scb->data = (CAPIMSG_COMMAND(skb->data) == CAPI_DATA_B3);
skb_queue_tail(&session->transmit, skb);
cmtp_schedule(session);
}
static void cmtp_send_interopmsg(struct cmtp_session *session, static void cmtp_send_interopmsg(struct cmtp_session *session,
__u8 subcmd, __u16 appl, __u16 msgnum, __u8 subcmd, __u16 appl, __u16 msgnum,
...@@ -337,21 +350,6 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb) ...@@ -337,21 +350,6 @@ void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb)
capi_ctr_handle_message(ctrl, appl, skb); capi_ctr_handle_message(ctrl, appl, skb);
} }
void cmtp_send_capimsg(struct cmtp_session *session, struct sk_buff *skb)
{
struct cmtp_scb *scb = (void *) skb->cb;
BT_DBG("session %p skb %p len %d", session, skb, skb->len);
scb->id = -1;
scb->data = (CAPIMSG_COMMAND(skb->data) == CAPI_DATA_B3);
skb_queue_tail(&session->transmit, skb);
cmtp_schedule(session);
}
static int cmtp_load_firmware(struct capi_ctr *ctrl, capiloaddata *data) static int cmtp_load_firmware(struct capi_ctr *ctrl, capiloaddata *data)
{ {
BT_DBG("ctrl %p data %p", ctrl, data); BT_DBG("ctrl %p data %p", ctrl, data);
......
...@@ -120,7 +120,6 @@ int cmtp_attach_device(struct cmtp_session *session); ...@@ -120,7 +120,6 @@ int cmtp_attach_device(struct cmtp_session *session);
void cmtp_detach_device(struct cmtp_session *session); void cmtp_detach_device(struct cmtp_session *session);
void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb); void cmtp_recv_capimsg(struct cmtp_session *session, struct sk_buff *skb);
void cmtp_send_capimsg(struct cmtp_session *session, struct sk_buff *skb);
static inline void cmtp_schedule(struct cmtp_session *session) static inline void cmtp_schedule(struct cmtp_session *session)
{ {
......
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