]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ad7414) Fix build warning
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 Apr 2019 13:26:08 +0000 (06:26 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit8b5de2f3ed24efee8295135a301162c15a75e221
treee148383e3d66eb7a43229423989dc845863e8070
parentb7d7f19f318901dd290a00b03c988c02c47fcd47
hwmon: (ad7414) Fix build warning

If CONFIG_OF is not enabled, the following build warning is observed.

drivers/hwmon/ad7414.c:218:34: warning:
‘ad7414_of_match’ defined but not used

Marking ad7414_of_match as __mayybe_unused fixes the problem.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ad7414.c