[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>

authored by Adrian Bunk and committed by Linus Torvalds 15ac8e66 18e55eea

+6 -4
+1 -1
drivers/media/dvb/b2c2/flexcop-hw-filter.c
··· 19 flexcop_set_ibi_value(ctrl_208,SMC_Enable_sig,onoff); 20 } 21 22 - void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) 23 { 24 flexcop_set_ibi_value(ctrl_208,Null_filter_sig,onoff); 25 }
··· 19 flexcop_set_ibi_value(ctrl_208,SMC_Enable_sig,onoff); 20 } 21 22 + static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) 23 { 24 flexcop_set_ibi_value(ctrl_208,Null_filter_sig,onoff); 25 }
+1 -1
drivers/media/dvb/dvb-usb/a800.c
··· 65 66 }; 67 68 - int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state) 69 { 70 u8 key[5]; 71 if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0),
··· 65 66 }; 67 68 + static int a800_rc_query(struct dvb_usb_device *d, u32 *event, int *state) 69 { 70 u8 key[5]; 71 if (usb_control_msg(d->udev,usb_rcvctrlpipe(d->udev,0),
+1 -1
drivers/media/dvb/dvb-usb/digitv.c
··· 148 }; 149 150 /* TODO is it really the NEC protocol ? */ 151 - int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) 152 { 153 u8 key[5]; 154
··· 148 }; 149 150 /* TODO is it really the NEC protocol ? */ 151 + static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) 152 { 153 u8 key[5]; 154
+1 -1
drivers/media/dvb/dvb-usb/dvb-usb-init.c
··· 23 MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0)."); 24 25 /* general initialization functions */ 26 - int dvb_usb_exit(struct dvb_usb_device *d) 27 { 28 deb_info("state before exiting everything: %x\n",d->state); 29 dvb_usb_remote_exit(d);
··· 23 MODULE_PARM_DESC(disable_rc_polling, "disable remote control polling (default: 0)."); 24 25 /* general initialization functions */ 26 + static int dvb_usb_exit(struct dvb_usb_device *d) 27 { 28 deb_info("state before exiting everything: %x\n",d->state); 29 dvb_usb_remote_exit(d);
+1
drivers/media/dvb/ttpci/av7110_ca.c
··· 40 41 #include "av7110.h" 42 #include "av7110_hw.h" 43 44 45 void CI_handle(struct av7110 *av7110, u8 *data, u16 len)
··· 40 41 #include "av7110.h" 42 #include "av7110_hw.h" 43 + #include "av7110_ca.h" 44 45 46 void CI_handle(struct av7110 *av7110, u8 *data, u16 len)
+1
drivers/media/dvb/ttpci/ttpci-eeprom.c
··· 37 #include <linux/string.h> 38 #include <linux/i2c.h> 39 40 41 #if 1 42 #define dprintk(x...) do { printk(x); } while (0)
··· 37 #include <linux/string.h> 38 #include <linux/i2c.h> 39 40 + #include "ttpci-eeprom.h" 41 42 #if 1 43 #define dprintk(x...) do { printk(x); } while (0)