From 89a7b6bd245502f4bf7dc5b8d0c1313fbda0f88a Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Fri, 30 Jun 2017 10:38:08 +0200 Subject: siemens/nc_fpga: Rename freeze_mode to freeze_disable The flag FF_FreezeDis marks if this feature is disabled. For a better readability rename freeze_mode to freeze_disable and invert the meaning of this information. Change-Id: I648b2392d2c8046965479511fde485a9cb934378 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/20432 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- src/drivers/siemens/nc_fpga/nc_fpga.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/siemens/nc_fpga/nc_fpga.c b/src/drivers/siemens/nc_fpga/nc_fpga.c index 59e7d4bd2f..8fb25bc7d2 100644 --- a/src/drivers/siemens/nc_fpga/nc_fpga.c +++ b/src/drivers/siemens/nc_fpga/nc_fpga.c @@ -58,7 +58,7 @@ static void init_temp_mon (void *base_adr) static void init_fan_ctrl (void *base_adr) { - uint8_t mask = 0, freeze_mode = 0, fan_req = 0; + uint8_t mask = 0, freeze_disable = 0, fan_req = 0; volatile fan_ctrl_t *ctrl = (fan_ctrl_t *)base_adr; /* Program all needed fields of FAN controller. */ @@ -76,10 +76,10 @@ static void init_fan_ctrl (void *base_adr) FPGA_SET_PARAM(FANMaxSpeed, ctrl->fanmax); /* Set freeze and FAN configuration. */ if ((hwilib_get_field(FF_FanReq, &fan_req, 1) == 1) && - (hwilib_get_field(FF_FreezeDis, &freeze_mode, 1) == 1)) { + (hwilib_get_field(FF_FreezeDis, &freeze_disable, 1) == 1)) { if (!fan_req) mask = 1; - else if (fan_req && freeze_mode) + else if (fan_req && !freeze_disable) mask = 2; else mask = 3; -- cgit v1.2.3