Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b702ed25 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4cb8f302
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -10,6 +10,7 @@
 */
 */


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


#include <sound/core.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/initval.h>
+1 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@
#include "audio.h"
#include "audio.h"
#include "pcm.h"
#include "pcm.h"
#include "pod.h"
#include "pod.h"
#include "capture.h"




/*
/*
+3 −3
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@
#include "midibuf.h"
#include "midibuf.h"




int midibuf_message_length(unsigned char code)
static int midibuf_message_length(unsigned char code)
{
{
	if(code < 0x80)
	if(code < 0x80)
		return -1;
		return -1;
@@ -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);
				 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;
	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;
	return this->full;
}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@
#include "audio.h"
#include "audio.h"
#include "pcm.h"
#include "pcm.h"
#include "pod.h"
#include "pod.h"
#include "playback.h"




/*
/*
+2 −2
Original line number Original line Diff line number Diff line
@@ -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).
	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);
	line6_invalidate_current(&pod->dumpreq);


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


Loading