]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] DVB: Small cleanups and CodeStyle fixes
authorAdrian Bunk <bunk@stusta.de>
Thu, 1 Dec 2005 08:51:53 +0000 (00:51 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 1 Dec 2005 23:48:59 +0000 (15:48 -0800)
- 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>
drivers/media/dvb/b2c2/flexcop-hw-filter.c
drivers/media/dvb/dvb-usb/a800.c
drivers/media/dvb/dvb-usb/digitv.c
drivers/media/dvb/dvb-usb/dvb-usb-init.c
drivers/media/dvb/ttpci/av7110_ca.c
drivers/media/dvb/ttpci/ttpci-eeprom.c

index 75cf237196eb85203a9b8306cebd38850290d643..b386cc66c6b31e3b89a2b982e5ad8efede9fdead 100644 (file)
@@ -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);
 }
index 49f541d9a042bd6448c77dfff3bfc11a627dabd5..8c7beffb045fd1335bdd23f2c7e6a47e0c538daa 100644 (file)
@@ -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),
index 74545f82eff1d2df2aca6e02f2577e8c9372827a..f98e306a5759ed6d78fa927212706157ff4d2654 100644 (file)
@@ -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];
 
index a902059812a2fdc7baf6a8a1de6bc9888fb7253f..dd8e0b94edbab6ae619c1a0d91abc667071b5ffc 100644 (file)
@@ -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);
index c3801e328fe912d2caf810e775b8129fd4d78d33..6079e8865d5b99d3f3ca4185e20b44014227df9f 100644 (file)
@@ -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)
index e9a8457b072791081836b177361063461384a354..ac79ef178c0555452dfdb78b5fb818e6ab636e7f 100644 (file)
@@ -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)