diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-04-04 10:52:05 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-04-15 20:19:53 -0400 |
commit | 0e09e9f939cb1f16391d5f86c9d39f19c23923a5 (patch) | |
tree | 48666514320c5ff82fc6d06046ce6614c67f9fb1 | |
parent | bd7d56a709004b35ce17854d44b96466cc334613 (diff) |
hwmon: lm95245: Fix build warnings
The following build warning is seen if CONFIG_OF is disabled.
drivers/hwmon/lm95245.c:626:34: warning:
‘lm95245_of_match’ defined but not used
Mark lm95245_of_match as __maybe_unused to fix the problem.
The following build warning is always seen.
drivers/hwmon/lm95245.c:95:17: warning:
‘lm95245_reg_address’ defined but not used
The array is no longer used since commit c0a4b9ec1b43 ("hwmon: (lm95245)
Use new hwmon registration API"). Remove it.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/lm95245.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c index c7e04f28ac90..8d08ca8bbdf8 100644 --- a/drivers/hwmon/lm95245.c +++ b/drivers/hwmon/lm95245.c | |||
@@ -92,19 +92,6 @@ static const unsigned short normal_i2c[] = { | |||
92 | #define LM95235_REVISION 0xB1 | 92 | #define LM95235_REVISION 0xB1 |
93 | #define LM95245_REVISION 0xB3 | 93 | #define LM95245_REVISION 0xB3 |
94 | 94 | ||
95 | static const u8 lm95245_reg_address[] = { | ||
96 | LM95245_REG_R_LOCAL_TEMPH_S, | ||
97 | LM95245_REG_R_LOCAL_TEMPL_S, | ||
98 | LM95245_REG_R_REMOTE_TEMPH_S, | ||
99 | LM95245_REG_R_REMOTE_TEMPL_S, | ||
100 | LM95245_REG_R_REMOTE_TEMPH_U, | ||
101 | LM95245_REG_R_REMOTE_TEMPL_U, | ||
102 | LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT, | ||
103 | LM95245_REG_RW_REMOTE_TCRIT_LIMIT, | ||
104 | LM95245_REG_RW_COMMON_HYSTERESIS, | ||
105 | LM95245_REG_R_STATUS1, | ||
106 | }; | ||
107 | |||
108 | /* Client data (each client gets its own) */ | 95 | /* Client data (each client gets its own) */ |
109 | struct lm95245_data { | 96 | struct lm95245_data { |
110 | struct regmap *regmap; | 97 | struct regmap *regmap; |
@@ -607,7 +594,7 @@ static const struct i2c_device_id lm95245_id[] = { | |||
607 | }; | 594 | }; |
608 | MODULE_DEVICE_TABLE(i2c, lm95245_id); | 595 | MODULE_DEVICE_TABLE(i2c, lm95245_id); |
609 | 596 | ||
610 | static const struct of_device_id lm95245_of_match[] = { | 597 | static const struct of_device_id __maybe_unused lm95245_of_match[] = { |
611 | { .compatible = "national,lm95235" }, | 598 | { .compatible = "national,lm95235" }, |
612 | { .compatible = "national,lm95245" }, | 599 | { .compatible = "national,lm95245" }, |
613 | { }, | 600 | { }, |