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

[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
...@@ -19,7 +19,7 @@ void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff) ...@@ -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);
} }
......
...@@ -65,7 +65,7 @@ static struct dvb_usb_rc_key a800_rc_keys[] = { ...@@ -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),
......
...@@ -148,7 +148,7 @@ static struct dvb_usb_rc_key digitv_rc_keys[] = { ...@@ -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];
......
...@@ -23,7 +23,7 @@ module_param_named(disable_rc_polling, dvb_usb_disable_rc_polling, int, 0644); ...@@ -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);
......
...@@ -40,6 +40,7 @@ ...@@ -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)
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include "ttpci-eeprom.h"
#if 1 #if 1
#define dprintk(x...) do { printk(x); } while (0) #define dprintk(x...) do { printk(x); } while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment