platform/chrome: Make i2c_adapter_names static
authorOlof Johansson <olof@lixom.net>
Mon, 25 Nov 2013 21:10:25 +0000 (13:10 -0800)
committerOlof Johansson <olof@lixom.net>
Mon, 25 Nov 2013 21:27:24 +0000 (13:27 -0800)
Not used outside of the file, so declaration should be static. Picked up by
sparse:

drivers/platform/chrome/chromeos_laptop.c:44:12: warning: symbol
    'i2c_adapter_names' was not declared. Should it be static?

Signed-off-by: Olof Johansson <olof@lixom.net>
Reviewed-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/chromeos_laptop.c

index 1c2747f119d19cc13698701e5a3af73372543903..446ef0f9c256b871ee53bf2a6c929f436b0d284b 100644 (file)
@@ -41,7 +41,7 @@ static struct i2c_client *als;
 static struct i2c_client *tp;
 static struct i2c_client *ts;
 
-const char *i2c_adapter_names[] = {
+static const char *i2c_adapter_names[] = {
        "SMBus I801 adapter",
        "i915 gmbus vga",
        "i915 gmbus panel",