]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (tmp102) Fix build warning
authorGuenter Roeck <linux@roeck-us.net>
Thu, 4 Apr 2019 13:27:26 +0000 (06:27 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit07af9a4a6d151821f2697ca7397deb8a6f2bed5e
treeaccdc9d88b3d515b5b6cbfd991fb061e6df421c4
parent0718298685f5fc643cbdedec06be0ab505da2b8c
hwmon: (tmp102) Fix build warning

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

drivers/hwmon/tmp102.c:324:34: warning:
‘tmp102_of_match’ defined but not used

Mark it as __maybe_unused to fix the problem.

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