From fb3e3283c4503f80fc73b4ef68d68e68c00bd1be Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Mon, 25 Jun 2012 22:33:50 +0800 Subject: Fix unit test compilation error A host command to set fan duty cycle is recently added and mock PWM module doesn't provide the implementation. This breaks our unit test. Let's fix this. BUG=chrome-os-partner:10820 TEST='thermal' unit test passed. Change-Id: I8644742cfec7d2112d7ff1e266b5ac3429c46945 Reviewed-on: https://gerrit.chromium.org/gerrit/26019 Reviewed-by: Vincent Palatin Commit-Ready: Vic Yang Tested-by: Vic Yang --- chip/lm4/mock_pwm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chip/lm4/mock_pwm.c b/chip/lm4/mock_pwm.c index 6c8f4d1d8b..c7f8fabe0f 100644 --- a/chip/lm4/mock_pwm.c +++ b/chip/lm4/mock_pwm.c @@ -54,6 +54,13 @@ int pwm_enable_keyboard_backlight(int enable) } +int pwm_set_fan_duty(int percent) +{ + /* Not implemented */ + return EC_SUCCESS; +} + + void pwm_task(void) { /* Do nothing */ -- cgit v1.2.1