Skip to contentSkip to conversation

platform/chrome: Make i2c_adapter_names static

PATCH In review Olof Johansson 2 participants 2 messages Nov 25, 2013 Chrome hardware platform support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/chrome: Make i2c_adapter_names static

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?

---
 drivers/platform/chrome/chromeos_laptop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/chrome/chromeos_laptop.c +1 -1
index 1c2747f119d1..446ef0f9c256 100644
@@ -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",
Signature · 1 line
1.8.4.1.601.g02b3b1d
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Olof Johansson

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?

Thanks,

Signature · 3 lines
Benson Leung
Software Engineer, Chrom* OS
[email protected]