* [2.6 patch] backlight: make 2 structs static
@ 2007-07-29 14:59 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-07-29 14:59 UTC (permalink / raw)
To: rpurdie; +Cc: linux-kernel
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)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-29 15:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 14:59 [2.6 patch] backlight: make 2 structs static Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox