Skip to contentSkip to conversation

backlight: make 2 structs static

PATCH New Adrian Bunk 1 participant 1 message Jul 29, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backlight: make 2 structs static

This patch makes two needlessly global structs static.

---

 drivers/video/backlight/backlight.c |    2 +-
 drivers/video/backlight/lcd.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/backlight/backlight.c renamed from drivers/video/backlight/backlight.c.old +1 -1
@@ -164,7 +164,7 @@
 	return rc;
 }
 
-struct class *backlight_class;
+static struct class *backlight_class;
 
 static void bl_device_release(struct device *dev)
 {
drivers/video/backlight/lcd.c renamed from drivers/video/backlight/lcd.c.old +1 -1
@@ -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)
 {