superio/fintek: Fix typo

Change-Id: If5c0921e20b26ce558f542f405cf62ae8d4a8101
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37503
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Elyes HAOUAS 2019-12-05 09:38:26 +01:00 committed by Felix Held
parent 683657e93a
commit d3f2a1e4a9
2 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ struct fintek_fan {
#define HWM_STATUS_INVALID_SECTION_VALUE -9 #define HWM_STATUS_INVALID_SECTION_VALUE -9
#define HWM_STATUS_BOUNDARY_WRONG_ORDER -10 #define HWM_STATUS_BOUNDARY_WRONG_ORDER -10
#define HWM_STATUS_SECTIONS_WRONG_ORDER -11 #define HWM_STATUS_SECTIONS_WRONG_ORDER -11
#define HWM_STATUS_WARNING_SENSOR_DISCONECTED 1 #define HWM_STATUS_WARNING_SENSOR_DISCONNECTED 1
#define HWM_STATUS_WARNING_FAN_NOT_PWM 2 #define HWM_STATUS_WARNING_FAN_NOT_PWM 2
#define CPU_DAMAGE_TEMP 110 #define CPU_DAMAGE_TEMP 110

View File

@ -159,16 +159,16 @@ int set_sensor_type(u16 base_address, external_sensor sensor,
switch (sensor) { switch (sensor) {
case EXTERNAL_SENSOR1: case EXTERNAL_SENSOR1:
if (sensor_status & TP_EXTERNAL_SENSOR1_OPEN) { if (sensor_status & TP_EXTERNAL_SENSOR1_OPEN) {
printk(BIOS_WARNING, "Sensor 1 disconected!\n"); printk(BIOS_WARNING, "Sensor 1 disconnected!\n");
return HWM_STATUS_WARNING_SENSOR_DISCONECTED; return HWM_STATUS_WARNING_SENSOR_DISCONNECTED;
} }
hwm_reg_modify(base_address, TP_SENSOR_TYPE, hwm_reg_modify(base_address, TP_SENSOR_TYPE,
TP_SENSOR1_TYPE_SHIFT, TP_SENSOR_TYPE_MASK, type); TP_SENSOR1_TYPE_SHIFT, TP_SENSOR_TYPE_MASK, type);
break; break;
case EXTERNAL_SENSOR2: case EXTERNAL_SENSOR2:
if (sensor_status & TP_EXTERNAL_SENSOR2_OPEN) { if (sensor_status & TP_EXTERNAL_SENSOR2_OPEN) {
printk(BIOS_WARNING, "Sensor 2 disconected!\n"); printk(BIOS_WARNING, "Sensor 2 disconnected!\n");
return HWM_STATUS_WARNING_SENSOR_DISCONECTED; return HWM_STATUS_WARNING_SENSOR_DISCONNECTED;
} }
hwm_reg_modify(base_address, TP_SENSOR_TYPE, hwm_reg_modify(base_address, TP_SENSOR_TYPE,
TP_SENSOR2_TYPE_SHIFT, TP_SENSOR_TYPE_MASK, type); TP_SENSOR2_TYPE_SHIFT, TP_SENSOR_TYPE_MASK, type);