aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-02-27 23:45:03 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:54:25 -0400
commitb702ed253d33d056987e92299687d8ed85195896 (patch)
tree2bcbd04f8555154f261dbaf1c78fa5b1444106cc /drivers/staging
parent4cb8f302738bd4d1fb5e2b909b735e8826558fbf (diff)
Staging: line6: static function cleanups
This fixes all of the static function warnings that sparse complains about. Cc: Markus Grabner <grabner@icg.tugraz.at> Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/line6/audio.c1
-rw-r--r--drivers/staging/line6/capture.c1
-rw-r--r--drivers/staging/line6/midibuf.c6
-rw-r--r--drivers/staging/line6/playback.c1
-rw-r--r--drivers/staging/line6/pod.c4
-rw-r--r--drivers/staging/line6/variax.c2
6 files changed, 9 insertions, 6 deletions
diff --git a/drivers/staging/line6/audio.c b/drivers/staging/line6/audio.c
index f6ad27412797..d035420c7bfb 100644
--- a/drivers/staging/line6/audio.c
+++ b/drivers/staging/line6/audio.c
@@ -10,6 +10,7 @@
10 */ 10 */
11 11
12#include "driver.h" 12#include "driver.h"
13#include "audio.h"
13 14
14#include <sound/core.h> 15#include <sound/core.h>
15#include <sound/initval.h> 16#include <sound/initval.h>
diff --git a/drivers/staging/line6/capture.c b/drivers/staging/line6/capture.c
index 6660c0b4cc5c..a4628bd61cac 100644
--- a/drivers/staging/line6/capture.c
+++ b/drivers/staging/line6/capture.c
@@ -18,6 +18,7 @@
18#include "audio.h" 18#include "audio.h"
19#include "pcm.h" 19#include "pcm.h"
20#include "pod.h" 20#include "pod.h"
21#include "capture.h"
21 22
22 23
23/* 24/*
diff --git a/drivers/staging/line6/midibuf.c b/drivers/staging/line6/midibuf.c
index 2f86c6692516..1f5934e32124 100644
--- a/drivers/staging/line6/midibuf.c
+++ b/drivers/staging/line6/midibuf.c
@@ -16,7 +16,7 @@
16#include "midibuf.h" 16#include "midibuf.h"
17 17
18 18
19int midibuf_message_length(unsigned char code) 19static int midibuf_message_length(unsigned char code)
20{ 20{
21 if(code < 0x80) 21 if(code < 0x80)
22 return -1; 22 return -1;
@@ -59,12 +59,12 @@ void midibuf_status(struct MidiBuffer *this)
59 this->size, this->split, this->pos_read, this->pos_write, this->full, this->command_prev); 59 this->size, this->split, this->pos_read, this->pos_write, this->full, this->command_prev);
60} 60}
61 61
62int midibuf_is_empty(struct MidiBuffer *this) 62static int midibuf_is_empty(struct MidiBuffer *this)
63{ 63{
64 return (this->pos_read == this->pos_write) && !this->full; 64 return (this->pos_read == this->pos_write) && !this->full;
65} 65}
66 66
67int midibuf_is_full(struct MidiBuffer *this) 67static int midibuf_is_full(struct MidiBuffer *this)
68{ 68{
69 return this->full; 69 return this->full;
70} 70}
diff --git a/drivers/staging/line6/playback.c b/drivers/staging/line6/playback.c
index c86e89c59f07..c30c627efdd7 100644
--- a/drivers/staging/line6/playback.c
+++ b/drivers/staging/line6/playback.c
@@ -18,6 +18,7 @@
18#include "audio.h" 18#include "audio.h"
19#include "pcm.h" 19#include "pcm.h"
20#include "pod.h" 20#include "pod.h"
21#include "playback.h"
21 22
22 23
23/* 24/*
diff --git a/drivers/staging/line6/pod.c b/drivers/staging/line6/pod.c
index eba804f2b17c..614e9dc2ad19 100644
--- a/drivers/staging/line6/pod.c
+++ b/drivers/staging/line6/pod.c
@@ -398,7 +398,7 @@ void pod_midi_postprocess(struct usb_line6_pod *pod, unsigned char *data, int le
398/* 398/*
399 Send channel number (i.e., switch to a different sound). 399 Send channel number (i.e., switch to a different sound).
400*/ 400*/
401void pod_send_channel(struct usb_line6_pod *pod, int value) 401static void pod_send_channel(struct usb_line6_pod *pod, int value)
402{ 402{
403 line6_invalidate_current(&pod->dumpreq); 403 line6_invalidate_current(&pod->dumpreq);
404 404
@@ -951,7 +951,7 @@ static void pod_destruct(struct usb_interface *interface)
951/* 951/*
952 Create sysfs entries. 952 Create sysfs entries.
953*/ 953*/
954int pod_create_files2(struct device *dev) 954static int pod_create_files2(struct device *dev)
955{ 955{
956 int err; 956 int err;
957 957
diff --git a/drivers/staging/line6/variax.c b/drivers/staging/line6/variax.c
index b27764769296..f25493dde797 100644
--- a/drivers/staging/line6/variax.c
+++ b/drivers/staging/line6/variax.c
@@ -392,7 +392,7 @@ static void variax_destruct(struct usb_interface *interface)
392/* 392/*
393 Create sysfs entries. 393 Create sysfs entries.
394*/ 394*/
395int variax_create_files2(struct device *dev) 395static int variax_create_files2(struct device *dev)
396{ 396{
397 int err; 397 int err;
398 CHECK_RETURN(device_create_file(dev, &dev_attr_model)); 398 CHECK_RETURN(device_create_file(dev, &dev_attr_model));