This patch makes two needlessly global structs static.
Signed-off-by: Adrian Bunk <[email protected]>
---
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 [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]