Skip to contentSkip to conversation

classmate-laptop: make needlessly global symbols static

PATCH In review Axel Lin 2 participants 2 messages Jul 8, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 classmate-laptop: make needlessly global symbols static

cmpc_accel_sensitivity_attr is needlessly defined global. This patch makes the symbol static.

---
 drivers/platform/x86/classmate-laptop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/classmate-laptop.c +1 -1
index 3bf399f..6c63303 100644
@@ -208,7 +208,7 @@ static ssize_t cmpc_accel_sensitivity_store(struct device *dev,
 	return strnlen(buf, count);
 }
 
-struct device_attribute cmpc_accel_sensitivity_attr = {
+static struct device_attribute cmpc_accel_sensitivity_attr = {
 	.attr = { .name = "sensitivity", .mode = 0660 },
 	.show = cmpc_accel_sensitivity_show,
 	.store = cmpc_accel_sensitivity_store
Signature · 1 line
1.5.4.3
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 26 lines · Axel Lin

cmpc_accel_sensitivity_attr is needlessly defined global. This patch makes the symbol static.

---
 drivers/platform/x86/classmate-laptop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/platform/x86/classmate-laptop.c +1 -1
index 3bf399f..6c63303 100644
@@ -208,7 +208,7 @@ static ssize_t cmpc_accel_sensitivity_store(struct device *dev,
 	return strnlen(buf, count);
 }
 
-struct device_attribute cmpc_accel_sensitivity_attr = {
+static struct device_attribute cmpc_accel_sensitivity_attr = {
 	.attr = { .name = "sensitivity", .mode = 0660 },
 	.show = cmpc_accel_sensitivity_show,
 	.store = cmpc_accel_sensitivity_store
Signature · 1 line
1.5.4.3