Messages in this thread Patch in this message | | | Date | Sun, 29 Jul 2007 16:59:09 +0200 | From | Adrian Bunk <> | 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/
| |