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
This commit is contained in:
Mark M. Hoffman committed 2004-09-23 04:04:21 +00:00
1 parent 3506be1de3
commit 220b15dfed
1 file changed
+8
+8
View File
@@ -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 }
};