[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <493EE98F.8060401@gmail.com>
Date: Tue, 09 Dec 2008 22:56:31 +0100
From: Roel Kluin <roel.kluin@...il.com>
To: Mauro Carvalho Chehab <mchehab@...radead.org>
CC: video4linux-list@...hat.com, lkml <linux-kernel@...r.kernel.org>
Subject: [PATCH 24/31] drivers/video: Make static
Sparse asked whether these could be static.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
drivers/video/mb862xx/mb862xxfb.c | 2 +-
drivers/video/via/hw.c | 2 +-
drivers/video/via/viafbdev.c | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/video/mb862xx/mb862xxfb.c b/drivers/video/mb862xx/mb862xxfb.c
index 38718d9..d9041af 100644
--- a/drivers/video/mb862xx/mb862xxfb.c
+++ b/drivers/video/mb862xx/mb862xxfb.c
@@ -458,7 +458,7 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev,
static DEVICE_ATTR(dispregs, 0444, mb862xxfb_show_dispregs, NULL);
-irqreturn_t mb862xx_intr(int irq, void *dev_id)
+static irqreturn_t mb862xx_intr(int irq, void *dev_id)
{
struct mb862xxfb_par *par = (struct mb862xxfb_par *) dev_id;
unsigned long reg_ist, mask;
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index fcd53ce..30493ac 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -553,7 +553,7 @@ void viafb_write_reg_mask(u8 index, int io_port, u8 data, u8 mask)
/*DEBUG_MSG(KERN_INFO "\nIndex=%2d Value=%2d", index, tmp); */
}
-void write_dac_reg(u8 index, u8 r, u8 g, u8 b)
+static void write_dac_reg(u8 index, u8 r, u8 g, u8 b)
{
outb(index, LUT_INDEX_WRITE);
outb(r, LUT_DATA);
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 73ac754..29d9ed1 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -35,14 +35,14 @@ static char *viafb_mode1 = "640x480";
static int viafb_resMode = VIA_RES_640X480;
/* Added for specifying active devices.*/
-char *viafb_active_dev = "";
+static char *viafb_active_dev = "";
/* Added for specifying video on devices.*/
-char *viafb_video_dev = "";
+static char *viafb_video_dev = "";
/*Added for specify lcd output port*/
-char *viafb_lcd_port = "";
-char *viafb_dvi_port = "";
+static char *viafb_lcd_port = "";
+static char *viafb_dvi_port = "";
static void viafb_set_device(struct device_t active_dev);
static int apply_device_setting(struct viafb_ioctl_setting setting_info,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists