aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-07-21 03:21:33 -0400
committerJiri Kosina <jkosina@suse.cz>2011-07-21 07:58:53 -0400
commitf4c79818ac6e36e304a01ea2fb6be6e14a545bcf (patch)
tree421c4fd6a6aa63bce2e900419e05d4517a5025e2 /drivers/hid
parent2dcd9543a28da523a179a13b1eefa5f9b8e05d72 (diff)
HID: prodikeys: make needlessly global symbols static
The following symbols are not referenced outside this file so there's no need for it to be in the global name space. pcmidi_sustained_note_release init_sustain_timers stop_sustain_timers pcmidi_handle_report pcmidi_setup_extra_keys pcmidi_snd_initialise pcmidi_snd_terminate Make them static. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-prodikeys.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c
index ab19f2905d27..7563229828a8 100644
--- a/drivers/hid/hid-prodikeys.c
+++ b/drivers/hid/hid-prodikeys.c
@@ -242,7 +242,7 @@ drop_note:
242 return; 242 return;
243} 243}
244 244
245void pcmidi_sustained_note_release(unsigned long data) 245static void pcmidi_sustained_note_release(unsigned long data)
246{ 246{
247 struct pcmidi_sustain *pms = (struct pcmidi_sustain *)data; 247 struct pcmidi_sustain *pms = (struct pcmidi_sustain *)data;
248 248
@@ -250,7 +250,7 @@ void pcmidi_sustained_note_release(unsigned long data)
250 pms->in_use = 0; 250 pms->in_use = 0;
251} 251}
252 252
253void init_sustain_timers(struct pcmidi_snd *pm) 253static void init_sustain_timers(struct pcmidi_snd *pm)
254{ 254{
255 struct pcmidi_sustain *pms; 255 struct pcmidi_sustain *pms;
256 unsigned i; 256 unsigned i;
@@ -264,7 +264,7 @@ void init_sustain_timers(struct pcmidi_snd *pm)
264 } 264 }
265} 265}
266 266
267void stop_sustain_timers(struct pcmidi_snd *pm) 267static void stop_sustain_timers(struct pcmidi_snd *pm)
268{ 268{
269 struct pcmidi_sustain *pms; 269 struct pcmidi_sustain *pms;
270 unsigned i; 270 unsigned i;
@@ -499,7 +499,7 @@ static int pcmidi_handle_report4(struct pcmidi_snd *pm, u8 *data)
499 return 1; 499 return 1;
500} 500}
501 501
502int pcmidi_handle_report( 502static int pcmidi_handle_report(
503 struct pcmidi_snd *pm, unsigned report_id, u8 *data, int size) 503 struct pcmidi_snd *pm, unsigned report_id, u8 *data, int size)
504{ 504{
505 int ret = 0; 505 int ret = 0;
@@ -518,7 +518,8 @@ int pcmidi_handle_report(
518 return ret; 518 return ret;
519} 519}
520 520
521void pcmidi_setup_extra_keys(struct pcmidi_snd *pm, struct input_dev *input) 521static void pcmidi_setup_extra_keys(
522 struct pcmidi_snd *pm, struct input_dev *input)
522{ 523{
523 /* reassigned functionality for N/A keys 524 /* reassigned functionality for N/A keys
524 MY PICTURES => KEY_WORDPROCESSOR 525 MY PICTURES => KEY_WORDPROCESSOR
@@ -602,7 +603,7 @@ static struct snd_rawmidi_ops pcmidi_in_ops = {
602 .trigger = pcmidi_in_trigger 603 .trigger = pcmidi_in_trigger
603}; 604};
604 605
605int pcmidi_snd_initialise(struct pcmidi_snd *pm) 606static int pcmidi_snd_initialise(struct pcmidi_snd *pm)
606{ 607{
607 static int dev; 608 static int dev;
608 struct snd_card *card; 609 struct snd_card *card;
@@ -720,7 +721,7 @@ fail:
720 return err; 721 return err;
721} 722}
722 723
723int pcmidi_snd_terminate(struct pcmidi_snd *pm) 724static int pcmidi_snd_terminate(struct pcmidi_snd *pm)
724{ 725{
725 if (pm->card) { 726 if (pm->card) {
726 stop_sustain_timers(pm); 727 stop_sustain_timers(pm);