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

Commit 15ac8e66 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] DVB: Small cleanups and CodeStyle fixes



- Small cleanups:

- make needlessly global functions static

- every file should #include the headers containing the prototypes for it's
  global functions

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 18e55eea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -19,7 +19,7 @@ void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff)
	flexcop_set_ibi_value(ctrl_208,SMC_Enable_sig,onoff);
	flexcop_set_ibi_value(ctrl_208,SMC_Enable_sig,onoff);
}
}


void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff)
static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff)
{
{
	flexcop_set_ibi_value(ctrl_208,Null_filter_sig,onoff);
	flexcop_set_ibi_value(ctrl_208,Null_filter_sig,onoff);
}
}
+1 −1
Original line number Original line Diff line number Diff line
@@ -65,7 +65,7 @@ static struct dvb_usb_rc_key a800_rc_keys[] = {


};
};


int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
static int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{
{
	u8 key[5];
	u8 key[5];
	if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0),
	if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0),
+1 −1
Original line number Original line Diff line number Diff line
@@ -148,7 +148,7 @@ static struct dvb_usb_rc_key digitv_rc_keys[] = {
};
};


/* TODO is it really the NEC protocol ? */
/* TODO is it really the NEC protocol ? */
int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
{
{
	u8 key[5];
	u8 key[5];


+1 −1
Original line number Original line Diff line number Diff line
@@ -23,7 +23,7 @@ module_param_named(disable_rc_polling, dvb_usb_disable_rc_polling, int, 0644);
MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0).");
MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0).");


/* general initialization functions */
/* general initialization functions */
int dvb_usb_exit(struct dvb_usb_device *d)
static int dvb_usb_exit(struct dvb_usb_device *d)
{
{
	deb_info("state before exiting everything: %x\n",d->state);
	deb_info("state before exiting everything: %x\n",d->state);
	dvb_usb_remote_exit(d);
	dvb_usb_remote_exit(d);
+1 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,7 @@


#include "av7110.h"
#include "av7110.h"
#include "av7110_hw.h"
#include "av7110_hw.h"
#include "av7110_ca.h"




void CI_handle(struct av7110 *av7110, u8 *data, u16 len)
void CI_handle(struct av7110 *av7110, u8 *data, u16 len)
Loading