Skip to content

Commit

Permalink
Staging: line6: static function cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent 4cb8f30 commit b702ed2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions drivers/staging/line6/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include "driver.h"
#include "audio.h"

#include <sound/core.h>
#include <sound/initval.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/line6/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "audio.h"
#include "pcm.h"
#include "pod.h"
#include "capture.h"


/*
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/line6/midibuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "midibuf.h"


int midibuf_message_length(unsigned char code)
static int midibuf_message_length(unsigned char code)
{
if(code < 0x80)
return -1;
Expand Down Expand Up @@ -59,12 +59,12 @@ void midibuf_status(struct MidiBuffer *this)
this->size, this->split, this->pos_read, this->pos_write, this->full, this->command_prev);
}

int midibuf_is_empty(struct MidiBuffer *this)
static int midibuf_is_empty(struct MidiBuffer *this)
{
return (this->pos_read == this->pos_write) && !this->full;
}

int midibuf_is_full(struct MidiBuffer *this)
static int midibuf_is_full(struct MidiBuffer *this)
{
return this->full;
}
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/line6/playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "audio.h"
#include "pcm.h"
#include "pod.h"
#include "playback.h"


/*
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/line6/pod.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ void pod_midi_postprocess(struct usb_line6_pod *pod, unsigned char *data, int le
/*
Send channel number (i.e., switch to a different sound).
*/
void pod_send_channel(struct usb_line6_pod *pod, int value)
static void pod_send_channel(struct usb_line6_pod *pod, int value)
{
line6_invalidate_current(&pod->dumpreq);

Expand Down Expand Up @@ -951,7 +951,7 @@ static void pod_destruct(struct usb_interface *interface)
/*
Create sysfs entries.
*/
int pod_create_files2(struct device *dev)
static int pod_create_files2(struct device *dev)
{
int err;

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/line6/variax.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static void variax_destruct(struct usb_interface *interface)
/*
Create sysfs entries.
*/
int variax_create_files2(struct device *dev)
static int variax_create_files2(struct device *dev)
{
int err;
CHECK_RETURN(device_create_file(dev, &dev_attr_model));
Expand Down

0 comments on commit b702ed2

Please sign in to comment.