[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: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
18e55eea01
Коммит
15ac8e663b
|
@ -19,7 +19,7 @@ void flexcop_smc_ctrl(struct flexcop_device *fc, int 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);
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0),
|
||||
|
|
|
@ -148,7 +148,7 @@ static struct dvb_usb_rc_key digitv_rc_keys[] = {
|
|||
};
|
||||
|
||||
/* 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];
|
||||
|
||||
|
|
|
@ -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).");
|
||||
|
||||
/* 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);
|
||||
dvb_usb_remote_exit(d);
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
#include "av7110.h"
|
||||
#include "av7110_hw.h"
|
||||
#include "av7110_ca.h"
|
||||
|
||||
|
||||
void CI_handle(struct av7110 *av7110, u8 *data, u16 len)
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#include <linux/string.h>
|
||||
#include <linux/i2c.h>
|
||||
|
||||
#include "ttpci-eeprom.h"
|
||||
|
||||
#if 1
|
||||
#define dprintk(x...) do { printk(x); } while (0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче