[2.6 patch] drivers/media/video/: make some code static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch makes some needlessly global code static.


Signed-off-by: Adrian Bunk <[email protected]>

---

 drivers/media/video/cx25840/cx25840-core.c |    2 +-
 drivers/media/video/cx88/cx88-alsa.c       |    6 +++---
 drivers/media/video/tvp5150.c              |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

--- linux-2.6.15-mm4-full/drivers/media/video/cx25840/cx25840-core.c.old	2006-01-14 17:56:39.000000000 +0100
+++ linux-2.6.15-mm4-full/drivers/media/video/cx25840/cx25840-core.c	2006-01-14 17:56:48.000000000 +0100
@@ -43,7 +43,7 @@
 static unsigned short normal_i2c[] = { 0x88 >> 1, I2C_CLIENT_END };
 
 
-int cx25840_debug;
+static int cx25840_debug;
 
 module_param_named(debug,cx25840_debug, int, 0644);
 
--- linux-2.6.15-mm4-full/drivers/media/video/cx88/cx88-alsa.c.old	2006-01-14 17:57:12.000000000 +0100
+++ linux-2.6.15-mm4-full/drivers/media/video/cx88/cx88-alsa.c	2006-01-14 17:57:43.000000000 +0100
@@ -128,7 +128,7 @@
  * BOARD Specific: Sets audio DMA
  */
 
-int _cx88_start_audio_dma(snd_cx88_card_t *chip)
+static int _cx88_start_audio_dma(snd_cx88_card_t *chip)
 {
 	struct cx88_buffer   *buf = chip->buf;
 	struct cx88_core *core=chip->core;
@@ -173,7 +173,7 @@
 /*
  * BOARD Specific: Resets audio DMA
  */
-int _cx88_stop_audio_dma(snd_cx88_card_t *chip)
+static int _cx88_stop_audio_dma(snd_cx88_card_t *chip)
 {
 	struct cx88_core *core=chip->core;
 	dprintk(1, "Stopping audio DMA\n");
@@ -613,7 +613,7 @@
  * Only boards with eeprom and byte 1 at eeprom=1 have it
  */
 
-struct pci_device_id cx88_audio_pci_tbl[] = {
+static struct pci_device_id cx88_audio_pci_tbl[] = {
 	{0x14f1,0x8801,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
 	{0x14f1,0x8811,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
 	{0, }
--- linux-2.6.15-mm4-full/drivers/media/video/tvp5150.c.old	2006-01-14 18:31:39.000000000 +0100
+++ linux-2.6.15-mm4-full/drivers/media/video/tvp5150.c	2006-01-14 18:31:58.000000000 +0100
@@ -634,7 +634,7 @@
 	unsigned char values[26];
 };
 
-struct i2c_vbi_ram_value vbi_ram_default[] =
+static struct i2c_vbi_ram_value vbi_ram_default[] =
 {
 	{0x010, /* WST SECAM 6 */
 		{ 0xaa, 0xaa, 0xff, 0xff , 0xe7, 0x2e, 0x20, 0x26, 0xe6, 0xb4, 0x0e, 0x0, 0x0, 0x0, 0x10, 0x0 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux