diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-09-19 16:55:40 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-23 21:26:26 +0000 |
commit | 6277f7e336f0dc96b676905a4c420f9d53951603 (patch) | |
tree | b61b823d7e3dda48182ba927c4e8eb6bcce9fe26 /common | |
parent | 61c40db16c0a5c03c9e2c25dfbf1e5e4645364bf (diff) | |
download | chrome-ec-6277f7e336f0dc96b676905a4c420f9d53951603.tar.gz |
Fix thermal.c compilation if fans are not present.
Currently, it doesn't compile unless CONFIG_FAN is defined.
BUG=chrome-os-partner:22803
BRANCH=none
TEST=temporarily undefine CONFIG_FAN in board/link/board.h; code compiles
and all unit tests pass
Change-Id: I251d670ccd299f7a50b1455364a817e07fad4cb1
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/170106
Diffstat (limited to 'common')
-rw-r--r-- | common/thermal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/thermal.c b/common/thermal.c index c51b5dc01a..c6c49868d2 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -146,8 +146,10 @@ static void thermal_control(void) throttle_ap(THROTTLE_OFF, THROTTLE_SOFT, THROTTLE_SRC_THERMAL); } +#ifdef CONFIG_FAN /* Max fan needed is what's needed. */ pwm_fan_set_percent_needed(fmax); +#endif } /* Wait until after the sensors have been read */ |