From: Armin Wolf <W_Armin@gmx.de>
To: james@equiv.tech
Cc: jdelvare@suse.com, linux@roeck-us.net,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [RFC PATCH 1/1] hwmon: (hp-wmi-sensors) Add missing MODULE_DEVICE_TABLE()
Date: Mon, 18 Mar 2024 22:57:32 +0100 [thread overview]
Message-ID: <20240318215732.322798-2-W_Armin@gmx.de> (raw)
In-Reply-To: <20240318215732.322798-1-W_Armin@gmx.de>
Register the WMI id table with MODULE_DEVICE_TABLE() so that
the driver can automatically be leaded on supported machines.
Compile-tested only.
Fixes: 23902f98f8d4 ("hwmon: add HP WMI Sensors driver")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
drivers/hwmon/hp-wmi-sensors.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hwmon/hp-wmi-sensors.c b/drivers/hwmon/hp-wmi-sensors.c
index b5325d0e72b9..493a3b3e86f3 100644
--- a/drivers/hwmon/hp-wmi-sensors.c
+++ b/drivers/hwmon/hp-wmi-sensors.c
@@ -25,6 +25,7 @@
#include <linux/debugfs.h>
#include <linux/hwmon.h>
#include <linux/jiffies.h>
+#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/nls.h>
#include <linux/units.h>
@@ -2072,6 +2073,7 @@ static const struct wmi_device_id hp_wmi_sensors_id_table[] = {
{ HP_WMI_NUMERIC_SENSOR_GUID, NULL },
{},
};
+MODULE_DEVICE_TABLE(wmi, hp_wmi_sensors_id_table);
static struct wmi_driver hp_wmi_sensors_driver = {
.driver = { .name = "hp-wmi-sensors" },
--
2.39.2
next prev parent reply other threads:[~2024-03-18 21:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 21:57 [RFC 0/1] hwmon: (hp-wmi-sensors) Support autoloading Armin Wolf
2024-03-18 21:57 ` Armin Wolf [this message]
2024-03-18 23:04 ` Guenter Roeck
2024-03-19 5:47 ` James Seo
2024-03-19 13:00 ` Armin Wolf
2024-03-20 0:40 ` James Seo
2024-03-20 15:13 ` Armin Wolf
2024-03-20 20:11 ` James Seo
2024-03-20 22:09 ` Armin Wolf
2024-03-21 6:33 ` James Seo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240318215732.322798-2-W_Armin@gmx.de \
--to=w_armin@gmx.de \
--cc=james@equiv.tech \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®