summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2012-06-25 22:33:50 +0800
committerGerrit <chrome-bot@google.com>2012-06-25 08:18:36 -0700
commitfb3e3283c4503f80fc73b4ef68d68e68c00bd1be (patch)
tree6ca9d26cfc6cd5eee919f6128b9a2e1ced70e1c1
parent7eabcb4e69aa5e19d92a8ab84806bc92377a82aa (diff)
downloadchrome-ec-fb3e3283c4503f80fc73b4ef68d68e68c00bd1be.tar.gz
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 <vpalatin@chromium.org> Commit-Ready: Vic Yang <victoryang@chromium.org> Tested-by: Vic Yang <victoryang@chromium.org>
-rw-r--r--chip/lm4/mock_pwm.c7
1 files changed, 7 insertions, 0 deletions
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 */