diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 15:09:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-01 15:09:59 -0400 |
commit | 3aebd34b1200a902a8662da8845824a02f00772e (patch) | |
tree | 13eac224dc1ac40be53bccc90f27bebf2e619c26 /drivers/misc/ti-st/st_core.c | |
parent | 2c0c86d5b67ee04e8b71a2ea2a3af6d224611cfc (diff) | |
parent | 5dc2db05f2f690d71d95979b14cca50ab8e49f40 (diff) |
Merge tag 'char-misc-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver merge from Greg Kroah-Hartman:
"Here is the "big" char/misc driver tree update for the 3.7-rc1 merge
window.
Nothing major, just a number of driver updates and fixes, all of which
have been in the linux-next releases for a while now either in my
tree, or in Andrew's (the lis3l driver changes came from his tree last
week).
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
* tag 'char-misc-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (52 commits)
drivers/misc/lis3lv02d/lis3lv02d_i2c.c: add lis3lv02d device tree init
drivers/misc/lis3lv02d/lis3lv02d_spi.c: add lis3lv02d device tree init
drivers/misc/lis3lv02d: remove lis3lv02d driver DT init
drivers/misc/lis3lv02d/lis3lv02d_spi.c: add DT matching table passthru code
drivers/misc/lis3lv02d: add generic DT matching code
lis3lv02d: fix some comments specific to lis331dlh driver
MISC: hpilo, remove pci_disable_device
pcmcia: synclink_cs: fix potential tty NULL dereference
drivers/char/mmtimer.c: Remove useless kfree
drivers/char: removes unnecessary semicolon
char/misc: remove CONFIG_EXPERIMENTAL dependencies
mei: don't print buffer as a string
mei: struct mei_message_data doesn't have to be packed
mei: add error messages for open count errors
misc: use module_spi_driver
tifm: use module_pci_driver
misc/at25, dt: Improve at25 SPI eeprom device tree bindings.
mei: add lynx point pci device ids
mei: fix max number of open handles
mei: rename struct pci_dev *mei_device to mei_pdev
...
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 | ||