diff options
Diffstat (limited to 'drivers/misc/ti-st/st_core.c')
-rw-r--r-- | drivers/misc/ti-st/st_core.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c index acfaeeb9e01..46937b10726 100644 --- a/drivers/misc/ti-st/st_core.c +++ b/drivers/misc/ti-st/st_core.c | |||
@@ -30,11 +30,13 @@ | |||
30 | 30 | ||
31 | #include <linux/ti_wilink_st.h> | 31 | #include <linux/ti_wilink_st.h> |
32 | 32 | ||
33 | extern void st_kim_recv(void *, const unsigned char *, long); | ||
34 | void st_int_recv(void *, const unsigned char *, long); | ||
33 | /* function pointer pointing to either, | 35 | /* function pointer pointing to either, |
34 | * st_kim_recv during registration to receive fw download responses | 36 | * st_kim_recv during registration to receive fw download responses |
35 | * st_int_recv after registration to receive proto stack responses | 37 | * st_int_recv after registration to receive proto stack responses |
36 | */ | 38 | */ |
37 | void (*st_recv) (void*, const unsigned char*, long); | 39 | static void (*st_recv) (void *, const unsigned char *, long); |
38 | 40 | ||
39 | /********************************************************************/ | 41 | /********************************************************************/ |
40 | static void add_channel_to_table(struct st_data_s *st_gdata, | 42 | static void add_channel_to_table(struct st_data_s *st_gdata, |
@@ -100,7 +102,7 @@ int st_int_write(struct st_data_s *st_gdata, | |||
100 | * push the skb received to relevant | 102 | * push the skb received to relevant |
101 | * protocol stacks | 103 | * protocol stacks |
102 | */ | 104 | */ |
103 | void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) | 105 | static void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) |
104 | { | 106 | { |
105 | pr_debug(" %s(prot:%d) ", __func__, chnl_id); | 107 | pr_debug(" %s(prot:%d) ", __func__, chnl_id); |
106 | 108 | ||
@@ -140,7 +142,7 @@ void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) | |||
140 | * This function is being called with spin lock held, protocol drivers are | 142 | * This function is being called with spin lock held, protocol drivers are |
141 | * only expected to complete their waits and do nothing more than that. | 143 | * only expected to complete their waits and do nothing more than that. |
142 | */ | 144 | */ |
143 | void st_reg_complete(struct st_data_s *st_gdata, char err) | 145 | static void st_reg_complete(struct st_data_s *st_gdata, char err) |
144 | { | 146 | { |
145 | unsigned char i = 0; | 147 | unsigned char i = 0; |
146 | pr_info(" %s ", __func__); | 148 | pr_info(" %s ", __func__); |
@@ -379,7 +381,7 @@ done: | |||
379 | * completely, return that skb which has the pending data. | 381 | * completely, return that skb which has the pending data. |
380 | * In normal cases, return top of txq. | 382 | * In normal cases, return top of txq. |
381 | */ | 383 | */ |
382 | struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) | 384 | static struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) |
383 | { | 385 | { |
384 | struct sk_buff *returning_skb; | 386 | struct sk_buff *returning_skb; |
385 | 387 | ||
@@ -401,7 +403,7 @@ struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) | |||
401 | * txq and waitq needs protection since the other contexts | 403 | * txq and waitq needs protection since the other contexts |
402 | * may be sending data, waking up chip. | 404 | * may be sending data, waking up chip. |
403 | */ | 405 | */ |
404 | void st_int_enqueue(struct st_data_s *st_gdata, struct sk_buff *skb) | 406 | static void st_int_enqueue(struct st_data_s *st_gdata, struct sk_buff *skb) |
405 | { | 407 | { |
406 | unsigned long flags = 0; | 408 | unsigned long flags = 0; |
407 | 409 | ||