Skip to contentSkip to conversation

hwmon: (pmbus) modify PSU fan_target convert value to false

PATCH New krishnar4 1 participant 2 messages Jan 27, 2022 1 message not in the archive Hardware monitoring

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

krishnar4

author
#1 lore raw

PATCH 1/1 hwmon: (pmbus) modify PSU fan_target convert value to false

Description: PSU can't use sysfs fan_target to control PSU fan duty.

---
 drivers/hwmon/pmbus/pmbus_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/pmbus/pmbus_core.c +1 -1
index 776ee2237be2..a56c2e1c4079 100644
@@ -1889,7 +1889,7 @@ static int pmbus_add_fan_ctrl(struct i2c_client *client,
 
 	sensor = pmbus_add_sensor(data, "fan", "target", index, page,
 				  0xff, PMBUS_VIRT_FAN_TARGET_1 + id, PSC_FAN,
-				  false, false, true);
+				  false, false, false);
 
 	if (!sensor)
 		return -ENOMEM;
Signature · 1 line
2.17.1
author
#2 lore raw

PATCH 1/1 hwmon: (pmbus) modify PSU fan_target convert value to false

In reply to a message not in the archive

Description: PSU can't use sysfs fan_target to control PSU fan duty.

---
 drivers/hwmon/pmbus/pmbus_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/pmbus/pmbus_core.c +1 -1
index 776ee2237be2..a56c2e1c4079 100644
@@ -1889,7 +1889,7 @@ static int pmbus_add_fan_ctrl(struct i2c_client *client,
 
 	sensor = pmbus_add_sensor(data, "fan", "target", index, page,
 				  0xff, PMBUS_VIRT_FAN_TARGET_1 + id, PSC_FAN,
-				  false, false, true);
+				  false, false, false);
 
 	if (!sensor)
 		return -ENOMEM;
Signature · 1 line
2.17.1