Linux Hardware Monitor development
 help / color / mirror / Atom feed
* Patch: applesmc.c - update handling
@ 2025-11-19 23:46 Jared Mauch
  2025-11-19 23:54 ` Armin Wolf
  2025-11-20  2:39 ` Guenter Roeck
  0 siblings, 2 replies; 5+ messages in thread
From: Jared Mauch @ 2025-11-19 23:46 UTC (permalink / raw)
  To: rydberg; +Cc: linux-hwmon

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

Updates code from hwmon_device_register to hwmon_device_register_with_info

Signed-off-by: Jared Mauch <jared@puck.nether.net>

diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
index fc6d6a9053ce..984dfbf40233 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -1362,7 +1362,7 @@ static int __init applesmc_init(void)
 	if (ret)
 		goto out_light_sysfs;
 
-	hwmon_dev = hwmon_device_register(&pdev->dev);
+	hwmon_dev = hwmon_device_register_with_info(&pdev->dev, "applesmc", NULL, NULL, NULL);
 	if (IS_ERR(hwmon_dev)) {
 		ret = PTR_ERR(hwmon_dev);
 		goto out_light_ledclass;



[-- Attachment #2: applesmc.c.patch --]
[-- Type: text/plain, Size: 487 bytes --]

diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
index fc6d6a9053ce..984dfbf40233 100644
--- a/drivers/hwmon/applesmc.c
+++ b/drivers/hwmon/applesmc.c
@@ -1362,7 +1362,7 @@ static int __init applesmc_init(void)
 	if (ret)
 		goto out_light_sysfs;
 
-	hwmon_dev = hwmon_device_register(&pdev->dev);
+	hwmon_dev = hwmon_device_register_with_info(&pdev->dev, "applesmc", NULL, NULL, NULL);
 	if (IS_ERR(hwmon_dev)) {
 		ret = PTR_ERR(hwmon_dev);
 		goto out_light_ledclass;

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-11-20  2:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-19 23:46 Patch: applesmc.c - update handling Jared Mauch
2025-11-19 23:54 ` Armin Wolf
2025-11-20  2:03   ` Jared Mauch
2025-11-20  2:39     ` Armin Wolf
2025-11-20  2:39 ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox