hwmon: (ntc_thermistor): Fix sparse warnings
authorSachin Kamat <[email protected]>
Tue, 19 Feb 2013 09:37:34 +0000 (15:07 +0530)
committerGuenter Roeck <[email protected]>
Wed, 20 Feb 2013 01:34:17 +0000 (17:34 -0800)
Fixes the following sparse warnings:
drivers/hwmon/ntc_thermistor.c:46:31: warning:
symbol 'ncpXXwb473' was not declared. Should it be static?
drivers/hwmon/ntc_thermistor.c:82:31: warning:
symbol 'ncpXXwl333' was not declared. Should it be static?

Cc: MyungJoo Ham <[email protected]>
Signed-off-by: Sachin Kamat <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Acked-by: Jean Delvare <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
drivers/hwmon/ntc_thermistor.c

index a87eb8986e360d66cebc31fca6e9ba90af32b538..b5f63f9c0ce1754f6c1b6a614e7c402f24382b81 100644 (file)
@@ -43,7 +43,7 @@ struct ntc_compensation {
  * The following compensation tables are from the specification of Murata NTC
  * Thermistors Datasheet
  */
-const struct ntc_compensation ncpXXwb473[] = {
+static const struct ntc_compensation ncpXXwb473[] = {
        { .temp_C       = -40, .ohm     = 1747920 },
        { .temp_C       = -35, .ohm     = 1245428 },
        { .temp_C       = -30, .ohm     = 898485 },
@@ -79,7 +79,7 @@ const struct ntc_compensation ncpXXwb473[] = {
        { .temp_C       = 120, .ohm     = 1615 },
        { .temp_C       = 125, .ohm     = 1406 },
 };
-const struct ntc_compensation ncpXXwl333[] = {
+static const struct ntc_compensation ncpXXwl333[] = {
        { .temp_C       = -40, .ohm     = 1610154 },
        { .temp_C       = -35, .ohm     = 1130850 },
        { .temp_C       = -30, .ohm     = 802609 },