From 220b15dfed52c1b7e3aa2a881be713414181b742 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Thu, 23 Sep 2004 04:04:21 +0000 Subject: [PATCH] Add backwards compat. code in anticipation of changing sysfs driver interface... fan?_pwm => pwm? fan?_pwm_enable => pwm?_enable git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2700 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/proc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/proc.c b/lib/proc.c index e10e01c8..d5fcc8d9 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -487,6 +487,14 @@ int getsysname(const sensors_chip_feature *feature, char *sysname, { "temp_hyst", "temp1_max_hyst", TEMPMAG }, { "temp_low", "temp1_min", TEMPMAG }, { "temp_over", "temp1_max", TEMPMAG }, + { "pwm1", "pwm1", 0, "fan1_pwm" }, + { "pwm2", "pwm2", 0, "fan2_pwm" }, + { "pwm3", "pwm3", 0, "fan3_pwm" }, + { "pwm4", "pwm4", 0, "fan4_pwm" }, + { "pwm1_enable", "pwm1_enable", 0, "fan1_pwm_enable" }, + { "pwm2_enable", "pwm2_enable", 0, "fan2_pwm_enable" }, + { "pwm3_enable", "pwm3_enable", 0, "fan3_pwm_enable" }, + { "pwm4_enable", "pwm4_enable", 0, "fan4_pwm_enable" }, { NULL, NULL } };