lkml.org 
[lkml]   [2007]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] backlight: make 2 structs static
This patch makes two needlessly global structs static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

drivers/video/backlight/backlight.c | 2 +-
drivers/video/backlight/lcd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2.6.23-rc1-mm1/drivers/video/backlight/backlight.c.old 2007-07-26 21:56:23.000000000 +0200
+++ linux-2.6.23-rc1-mm1/drivers/video/backlight/backlight.c 2007-07-26 21:56:31.000000000 +0200
@@ -164,7 +164,7 @@
return rc;
}

-struct class *backlight_class;
+static struct class *backlight_class;

static void bl_device_release(struct device *dev)
{
--- linux-2.6.23-rc1-mm1/drivers/video/backlight/lcd.c.old 2007-07-26 21:57:40.000000000 +0200
+++ linux-2.6.23-rc1-mm1/drivers/video/backlight/lcd.c 2007-07-26 22:18:23.000000000 +0200
@@ -149,7 +149,7 @@
return sprintf(buf, "%d\n", ld->props.max_contrast);
}

-struct class *lcd_class;
+static struct class *lcd_class;

static void lcd_device_release(struct device *dev)
{
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-07-29 17:11    [W:0.046 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site