[PATCH] THMC50 2.6 additions to lm-sensors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Krzysztof Helt <krzysztof.h1 at wp.pl>

This patch adds support for the THMC50 kernel driver to lm-sensors library (for 2.6 kernel driver).
At least temperatures and analog output (fan) can be read.

Signed-off-by: Krzysztof Helt <krzysztof.h1 at wp.pl>

---

--- lm-sensors2/lib/chips.c	2007-07-26 22:37:21.000000000 +0200
+++ lm-sensors/lib/chips.c	2007-07-26 23:07:33.889347402 +0200
@@ -2747,7 +2747,8 @@ static sensors_chip_feature thmc50_featu
                              THMC50_SYSCTL_TEMP, VALUE(3), 0 },
     { { SENSORS_THMC50_TEMP_HYST, "temp_hyst", SENSORS_THMC50_TEMP, 
                                   SENSORS_THMC50_TEMP, RW }, 
-                                  THMC50_SYSCTL_TEMP, VALUE(2), 0 },
+                                  THMC50_SYSCTL_TEMP, VALUE(2), 0,
+                                  "temp1_min", 3 },
     { { SENSORS_THMC50_TEMP_OVER, "temp_over", SENSORS_THMC50_TEMP, 
                                   SENSORS_THMC50_TEMP, RW }, 
                                   THMC50_SYSCTL_TEMP, VALUE(1), 0 },
@@ -2757,14 +2758,15 @@ static sensors_chip_feature thmc50_featu
                                          SENSORS_THMC50_REMOTE_TEMP, 
                                          SENSORS_THMC50_REMOTE_TEMP, RW }, 
                                          THMC50_SYSCTL_REMOTE_TEMP, VALUE(2), 
-                                         0 },
+                                         0, "temp2_min", 3 },
     { { SENSORS_THMC50_REMOTE_TEMP_OVER, "remote_temp_over", 
                                          SENSORS_THMC50_REMOTE_TEMP, 
                                          SENSORS_THMC50_REMOTE_TEMP, RW }, 
                                          THMC50_SYSCTL_REMOTE_TEMP, VALUE(1), 
                                          0 },
     { { SENSORS_THMC50_INTER_MASK, "analog output", NOMAP, NOMAP, RW }, 
-                                   THMC50_SYSCTL_ANALOG_OUT, VALUE(1), 0 },
+                                   THMC50_SYSCTL_ANALOG_OUT, VALUE(1), 0,
+                                   "pwm1", 0 },
     { { SENSORS_THMC50_INTER, "interrupts", NOMAP, NOMAP, R }, 
                               THMC50_SYSCTL_INTER, VALUE(1), 0 },
     { { SENSORS_THMC50_INTER_MASK, "interrupt mask", NOMAP, NOMAP, RW }, 




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux