hwmon: (hp-wmi-sensors) fix debugfs check
authorArnd Bergmann <arnd@arndb.de>
Thu, 1 Jun 2023 21:31:54 +0000 (23:31 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 8 Jun 2023 13:42:53 +0000 (06:42 -0700)
commit153c9a023b1f455887a3fb7913207794eee3c6c2
treea1338b89b073704d0f673c187f3c3abc8c0437e9
parent23902f98f8d4811ab84dde6419569a5b374f8122
hwmon: (hp-wmi-sensors) fix debugfs check

Checking for Kconfig symbols with #if is wrong:

drivers/hwmon/hp-wmi-sensors.c:1141:5: error: "CONFIG_DEBUG_FS" is not defined, evaluates to 0 [-Werror=undef]

This could be an #ifdef, but an IS_ENABLED() check is even better to
give the best compile coverage.

Fixes: 23902f98f8d4 ("hwmon: add HP WMI Sensors driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: James Seo <james@equiv.tech>
Link: https://lore.kernel.org/r/20230601213216.3220550-1-arnd@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hp-wmi-sensors.c