backlight/leds: Make two structs static
authorAdrian Bunk <bunk@stusta.de>
Sat, 11 Aug 2007 09:27:19 +0000 (10:27 +0100)
committerRichard Purdie <rpurdie@rpsys.net>
Thu, 11 Oct 2007 21:24:12 +0000 (22:24 +0100)
This patch makes two needlessly global structs static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
drivers/video/backlight/backlight.c
drivers/video/backlight/lcd.c

index b26de8cf311270ef4eff4a1478f48dbf7120d8b8..4840fe217e4d30edc8dcc41318720a6e6fede59d 100644 (file)
@@ -164,7 +164,7 @@ static ssize_t backlight_show_actual_brightness(struct device *dev,
        return rc;
 }
 
-struct class *backlight_class;
+static struct class *backlight_class;
 
 static void bl_device_release(struct device *dev)
 {
index 6f652c65fae130ab59bbcd89a29d5da0a0be551f..299fd318dd45828a4466d982069b69f221b27b5a 100644 (file)
@@ -149,7 +149,7 @@ static ssize_t lcd_show_max_contrast(struct device *dev,
        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)
 {