Skip to contentSkip to conversation

small drivers/media/radio/ cleanups

PATCH New Adrian Bunk 1 participant 1 message Nov 7, 2004

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small drivers/media/radio/ cleanups

the patch below makes the following cleanups under drivers/media/radio/ :
- remove two unused global variables
- make some needlessly global code static

diffstat output:

 drivers/media/radio/radio-aimslab.c   |    4 ++--
 drivers/media/radio/radio-cadet.c     |    4 ++--
 drivers/media/radio/radio-gemtek.c    |    2 +-
 drivers/media/radio/radio-maestro.c   |    4 ++--
 drivers/media/radio/radio-maxiradio.c |    4 ++--
 drivers/media/radio/radio-terratec.c  |    2 +-
 drivers/media/radio/radio-zoltrix.c   |    4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)
drivers/media/radio/radio-aimslab.c renamed from drivers/media/radio/radio-aimslab.c.old +2 -2
@@ -130,7 +130,7 @@
  * and bit 4 (+16) is to keep the signal strength meter enabled
  */
 
-void send_0_byte(int port, struct rt_device *dev)
+static void send_0_byte(int port, struct rt_device *dev)
 {
 	if ((dev->curvol == 0) || (dev->muted)) {
 		outb_p(128+64+16+  1, port);   /* wr-enable + data low */
@@ -143,7 +143,7 @@
 	sleep_delay(1000); 
 }
 
-void send_1_byte(int port, struct rt_device *dev)
+static void send_1_byte(int port, struct rt_device *dev)
 {
 	if ((dev->curvol == 0) || (dev->muted)) {
 		outb_p(128+64+16+4  +1, port);   /* wr-enable+data high */
drivers/media/radio/radio-cadet.c renamed from drivers/media/radio/radio-cadet.c.old +2 -2
@@ -46,7 +46,7 @@
 static int tunestat=0;
 static int sigstrength=0;
 static wait_queue_head_t read_queue;
-struct timer_list tunertimer,rdstimer,readtimer;
+static struct timer_list readtimer;
 static __u8 rdsin=0,rdsout=0,rdsstat=0;
 static unsigned char rdsbuf[RDS_BUFFER];
 static spinlock_t cadet_io_lock;
@@ -280,7 +280,7 @@
 	spin_unlock(&cadet_io_lock);
 }  
 
-void cadet_handler(unsigned long data)
+static void cadet_handler(unsigned long data)
 {
 	/*
 	 * Service the RDS fifo
drivers/media/radio/radio-gemtek.c renamed from drivers/media/radio/radio-gemtek.c.old +1 -1
@@ -127,7 +127,7 @@
 	return 0;
 }
 
-int gemtek_getsigstr(struct gemtek_device *dev)
+static int gemtek_getsigstr(struct gemtek_device *dev)
 {
 	spin_lock(&lock);
 	inb(io);
drivers/media/radio/radio-maestro.c renamed from drivers/media/radio/radio-maestro.c.old +2 -2
@@ -256,12 +256,12 @@
 MODULE_DESCRIPTION("Radio driver for the Maestro PCI sound card radio.");
 MODULE_LICENSE("GPL");
 
-void __exit maestro_radio_exit(void)
+static void __exit maestro_radio_exit(void)
 {
 	video_unregister_device(&maestro_radio);
 }
 
-int __init maestro_radio_init(void)
+static int __init maestro_radio_init(void)
 {
 	register __u16 found=0;
 	struct pci_dev *pcidev = NULL;
drivers/media/radio/radio-maxiradio.c renamed from drivers/media/radio/radio-maxiradio.c.old +2 -2
@@ -335,12 +335,12 @@
 	.remove		= __devexit_p(maxiradio_remove_one),
 };
 
-int __init maxiradio_radio_init(void)
+static int __init maxiradio_radio_init(void)
 {
 	return pci_module_init(&maxiradio_driver);
 }
 
-void __exit maxiradio_radio_exit(void)
+static void __exit maxiradio_radio_exit(void)
 {
 	pci_unregister_driver(&maxiradio_driver);
 }
drivers/media/radio/radio-terratec.c renamed from drivers/media/radio/radio-terratec.c.old +1 -1
@@ -175,7 +175,7 @@
   	return 0;
 }
 
-int tt_getsigstr(struct tt_device *dev)		/* TODO */
+static int tt_getsigstr(struct tt_device *dev)		/* TODO */
 {
 	if (inb(io) & 2)	/* bit set = no signal present	*/
 		return 0;
drivers/media/radio/radio-zoltrix.c renamed from drivers/media/radio/radio-zoltrix.c.old +2 -2
@@ -169,7 +169,7 @@
 
 /* Get signal strength */
 
-int zol_getsigstr(struct zol_device *dev)
+static int zol_getsigstr(struct zol_device *dev)
 {
 	int a, b;
 
@@ -194,7 +194,7 @@
  	return (0);
 }
 
-int zol_is_stereo (struct zol_device *dev)
+static int zol_is_stereo (struct zol_device *dev)
 {
 	int x1, x2;