summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-12-03 18:31:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-08 09:57:05 +0100
commitf0ebb06e222b54aef8f2fc32bff2264753dd4f76 (patch)
treeed1f42cb163f8df4bcf2c72e36f3b60860d471d4 /drivers/hwmon
parent889433a2ed5aa5308cbbc6fec6872e020c294d64 (diff)
downloadlinux-f0ebb06e222b54aef8f2fc32bff2264753dd4f76.tar.gz
linux-f0ebb06e222b54aef8f2fc32bff2264753dd4f76.tar.bz2
linux-f0ebb06e222b54aef8f2fc32bff2264753dd4f76.zip
hwmon: (nct6775): Actually make use of the HWMON_NCT6775 symbol namespace
[ Upstream commit 2505f87eb3af55f3dd7f57d7cb7783b94b52a2d9 ] DEFAULT_SYMBOL_NAMESPACE must already be defined when <linux/export.h> is included. So move the define above the include block. Fixes: c3963bc0a0cf ("hwmon: (nct6775) Split core and platform driver") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/nct6775-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/nct6775-core.c b/drivers/hwmon/nct6775-core.c
index c243b51837d2..fa3351351825 100644
--- a/drivers/hwmon/nct6775-core.c
+++ b/drivers/hwmon/nct6775-core.c
@@ -42,6 +42,9 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#undef DEFAULT_SYMBOL_NAMESPACE
+#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775"
+
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
@@ -56,9 +59,6 @@
#include "lm75.h"
#include "nct6775.h"
-#undef DEFAULT_SYMBOL_NAMESPACE
-#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775"
-
#define USE_ALTERNATE
/* used to set data->name = nct6775_device_names[data->sio_kind] */