make i2c_adapter_names static to avoid sparse warnings
A message that is not in the archive (sent off-list or not yet received): 20121227080739.GA20905@bee
Benson Leung
Reviewed-byReviewed-by Benson Leung <[email protected]>
Thanks,
Benson
Quoted 15 lines · Xiechanglong
Signed-off-by Changlong Xie <[email protected]>---
Index:linux/drivers/platform/x86/chromeos_laptop.c
===================================================================drivers/platform/x86/chromeos_laptop.c +1
-1@@ -31,7 +31,7 @@static struct i2c_client *als;static struct i2c_client *tp; -const char *i2c_adapter_names[] = { +static const char *i2c_adapter_names[] = {"SMBus I801 adapter" , };
Signature · 3 lines
Benson Leung Software Engineer, Chrom* OS [email protected]
Actually, it looks like there's a checkpatch warning :
WARNING: static const char * array should probably be static const char * const #20: FILE: drivers/platform/x86/chromeos_laptop.c:34:
+static const char *i2c_adapter_names[] = {
total: 0 errors, 1 warnings, 8 lines checked
Quoted 28 lines · Benson Leung
Reviewed-by Benson Leung <[email protected]>Thanks,
BensonQuoted 7 lines · Xiechanglong
Signed-off-by Changlong Xie <[email protected]>---
Index:linux/drivers/platform/x86/chromeos_laptop.c
===================================================================drivers/platform/x86/chromeos_laptop.c line 37
Quoted 8 lines
drivers/platform/x86/chromeos_laptop.c +1
-1@@ -31,7 +31,7 @@static struct i2c_client *als;static struct i2c_client *tp; -const char *i2c_adapter_names[] = { +static const char *i2c_adapter_names[] = {"SMBus I801 adapter" , };--
Benson Leung
Software Engineer, Chrom* OS
[email protected]
Signature · 3 lines
Benson Leung Software Engineer, Chrom* OS [email protected]