PATCH [3/4]: hwmon: f71882fg add temp#_fault sysfs
While working on f71852fg support I noticed that the f8000 sysfs attr table was missing entries for temp#_fault, which the f8000 does have and which we were already reading.
Signed-off-by Hans de Goede <[email protected]>
hwmon: f71882fg add temp#_fault sysfs attr for f8000
While working on f71852fg support I noticed that the f8000 sysfs attr table was missing entries for temp#_fault, which the f8000 does have and which we were already reading.
Signed-off-by Hans de Goede <[email protected]>
drivers/hwmon/f71882fg.c renamed from drivers/hwmon/f71882fg.c.orig3 +3 -0
@@ -344,6 +344,7 @@ static struct sensor_device_attribute_2SENSOR_ATTR_2 (temp1_max_hyst,S_IRUGO |S_IWUSR , show_temp_max, store_temp_max,0 ,0 ),SENSOR_ATTR_2 (temp1_alarm,S_IRUGO , show_temp_alarm,NULL ,0 ,4 ), +SENSOR_ATTR_2 (temp1_fault,S_IRUGO , show_temp_fault,NULL ,0 ,0 ),SENSOR_ATTR_2 (temp2_input,S_IRUGO , show_temp,NULL ,0 ,1 ),SENSOR_ATTR_2 (temp2_max,S_IRUGO |S_IWUSR , show_temp_crit, store_temp_crit, 0, 1),
@@ -351,12 +352,14 @@ static struct sensor_device_attribute_2 store_temp_max, 0, 1),SENSOR_ATTR_2 (temp2_alarm,S_IRUGO , show_temp_alarm,NULL ,0 ,5 ),SENSOR_ATTR_2 (temp2_type,S_IRUGO , show_temp_type,NULL ,0 ,1 ), +SENSOR_ATTR_2 (temp2_fault,S_IRUGO , show_temp_fault,NULL ,0 ,1 ),SENSOR_ATTR_2 (temp3_input,S_IRUGO , show_temp,NULL ,0 ,2 ),SENSOR_ATTR_2 (temp3_max,S_IRUGO |S_IWUSR , show_temp_crit, store_temp_crit,0 ,2 ),SENSOR_ATTR_2 (temp3_max_hyst,S_IRUGO |S_IWUSR , show_temp_max, store_temp_max,0 ,2 ),SENSOR_ATTR_2 (temp3_alarm,S_IRUGO , show_temp_alarm,NULL ,0 ,6 ), + SENSOR_ATTR_2(temp3_fault, S_IRUGO, show_temp_fault, NULL, 0, 2), };/* Fan / PWM attr common to all models */
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 5 lines · Hans de Goede
While working on f71852fg support I noticed that the f8000 sysfs attr table was missing entries for temp#_fault, which the f8000 does have and which we were already reading.
Signed-off-by Hans de Goede <[email protected]>
Looks good, applied, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors