Hello Nicolas!
I want to use the AppleSMC sensors with lm-sensors. I found the following
patch on the mailing-list. Is it still needed?
If so, why isn't is in the mactel patches?
From:
http://www.mail-archive.com/mac...@li.../msg01064.html
Let the applesmc device export its address to userspace. libsensors
needs this to recognize the device and give it a unique ID.
Signed-off-by: Jean Delvare <kh...@li...>
-- linux-2.6.21-git.orig/drivers/hwmon/applesmc.c 2007-05-07 14:20:42.000000000 +0200
+++ linux-2.6.21-git/drivers/hwmon/applesmc.c 2007-05-07 14:23:12.000000000 +0200
@@ -1190,7 +1190,8 @@ static int __init applesmc_init(void)
if (ret)
goto out_region;
- pdev = platform_device_register_simple("applesmc", -1, NULL, 0);
+ pdev = platform_device_register_simple("applesmc", APPLESMC_DATA_PORT,
+ NULL, 0);
if (IS_ERR(pdev)) {
ret = PTR_ERR(pdev);
goto out_driver;
Mit freundlichen Grüßen
Sven Anders
--
Sven Anders <an...@an...> () Ascii Ribbon Campaign
/\ Support plain text e-mail
ANDURAS service solutions AG
Innstraße 71 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau HRB 6032
Mitglieder des Vorstands: Sven Anders, Marcus Junker
Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Träger
|