]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Sony-laptop: Fix sparse warning (make undeclared var static)
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 14:49:41 +0000 (14:49 +0000)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 7 Feb 2015 20:09:20 +0000 (12:09 -0800)
Fix the following sparse warning:

sony-laptop.c:1035:29: warning: symbol 'sony_bl_props' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/sony-laptop.c

index 6dd1c0e7dcd9af81a43db55f0c4ba87956e37dde..e51c1e7536077306234e579121cf18badcb45a01 100644 (file)
@@ -1032,7 +1032,7 @@ struct sony_backlight_props {
        u8                      offset;
        u8                      maxlvl;
 };
-struct sony_backlight_props sony_bl_props;
+static struct sony_backlight_props sony_bl_props;
 
 static int sony_backlight_update_status(struct backlight_device *bd)
 {