hwmon: lm95245: Fix build warnings
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 Apr 2019 14:52:05 +0000 (07:52 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit0e09e9f939cb1f16391d5f86c9d39f19c23923a5
tree48666514320c5ff82fc6d06046ce6614c67f9fb1
parentbd7d56a709004b35ce17854d44b96466cc334613
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>
drivers/hwmon/lm95245.c