aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:22 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 03:25:36 +0300
commitd3ffa81848853f29b4c1a3c2baa8ee7687290287 (patch)
treef6eb7b81a1f6a8bb37d3d303f2f0ade060637ee3
parentc08f1f2d5f3ff9a2eaff82f740fedcd8302c6adc (diff)
downloadpowerdebug-d3ffa81848853f29b4c1a3c2baa8ee7687290287.tar.gz
Make some variable static
These variable are only used in the sensor.c file. Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--sensor.c9
-rw-r--r--sensor.h8
2 files changed, 9 insertions, 8 deletions
diff --git a/sensor.c b/sensor.c
index f5fcd40..df07593 100644
--- a/sensor.c
+++ b/sensor.c
@@ -16,6 +16,15 @@
#include "powerdebug.h"
#include "sensor.h"
+static char *items_temp[32] = {"min", "max", "input", "label", ""};
+static char *suffix_temp[32] = {"°C", "°C", "°C", "", ""};
+static char *items_in[32] = {"min", "max", "input", "label", ""};
+static char *suffix_in[32] = {"Volts", "Volts", "Volts", "", ""};
+static char *items_fan[32] = {"min", "max", "input", "label", "div", "target", ""};
+static char *suffix_fan[32] = {"RPM", "RPM", "RPM", "", "", "RPM", ""};
+static char *items_pwm[32] = {"freq", "enable", "mode", ""};
+static char *suffix_pwm[32] = {"Hz", "", "", ""};
+
char *get_num(char *fname, char *sensor)
{
char tmpstr[NAME_MAX];
diff --git a/sensor.h b/sensor.h
index cca11d1..8537149 100644
--- a/sensor.h
+++ b/sensor.h
@@ -13,11 +13,3 @@
* - initial API and implementation
*******************************************************************************/
-char *items_temp[32] = {"min", "max", "input", "label", ""};
-char *suffix_temp[32] = {"°C", "°C", "°C", "", ""};
-char *items_in[32] = {"min", "max", "input", "label", ""};
-char *suffix_in[32] = {"Volts", "Volts", "Volts", "", ""};
-char *items_fan[32] = {"min", "max", "input", "label", "div", "target", ""};
-char *suffix_fan[32] = {"RPM", "RPM", "RPM", "", "", "RPM", ""};
-char *items_pwm[32] = {"freq", "enable", "mode", ""};
-char *suffix_pwm[32] = {"Hz", "", "", ""};