aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ti-st/st_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/ti-st/st_core.c')
-rw-r--r--drivers/misc/ti-st/st_core.c12
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
33extern void st_kim_recv(void *, const unsigned char *, long);
34void 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 */
37void (*st_recv) (void*, const unsigned char*, long); 39static void (*st_recv) (void *, const unsigned char *, long);
38 40
39/********************************************************************/ 41/********************************************************************/
40static void add_channel_to_table(struct st_data_s *st_gdata, 42static 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 */
103void st_send_frame(unsigned char chnl_id, struct st_data_s *st_gdata) 105static 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 */
143void st_reg_complete(struct st_data_s *st_gdata, char err) 145static 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 */
382struct sk_buff *st_int_dequeue(struct st_data_s *st_gdata) 384static 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 */
404void st_int_enqueue(struct st_data_s *st_gdata, struct sk_buff *skb) 406static 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