summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-10-29 13:05:11 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-30 21:51:50 +0000
commitc7b930606b479d4747da224f6cf62fd8061e6af0 (patch)
tree71df4cab99a9598d429a3409f8416ec9490e9283 /test
parent1d0102ae2cccdb4e798c196b0e6445c167efe4b6 (diff)
downloadchrome-ec-c7b930606b479d4747da224f6cf62fd8061e6af0.tar.gz
Separate common fan behavior from implementation
This looks like a lot, but it's really just moving the non-board-specific stuff from chip/lm4/fan.c into common/fan.c, updating the appropriate headers, and renaming functions to better match the new location. This is entirely code refactoring and renaming. No new functionality. BUG=chrome-os-partner:23530 BRANCH=none TEST=manual make runtests, build all platforms, build and test on Link. Change-Id: I7dc03d6732bad83cf838a86600b42a7cff5aa7aa Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175012
Diffstat (limited to 'test')
-rw-r--r--test/test_config.h2
-rw-r--r--test/thermal.c2
-rw-r--r--test/thermal_falco.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/test/test_config.h b/test/test_config.h
index 53144073e4..c18700e25e 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -52,6 +52,7 @@ int board_discharge_on_ac(int enabled);
#ifdef TEST_thermal
#define CONFIG_CHIPSET_CAN_THROTTLE
#define CONFIG_FAN
+#define CONFIG_FAN_CH_CPU 0
#define CONFIG_FAN_RPM_MAX 5000
#define CONFIG_FAN_RPM_MIN 1000
#define CONFIG_TEMP_SENSOR
@@ -65,6 +66,7 @@ int board_discharge_on_ac(int enabled);
#define CONFIG_CHIPSET_CAN_THROTTLE
#define CONFIG_EXTPOWER_FALCO
#define CONFIG_FAN
+#define CONFIG_FAN_CH_CPU 0
#define CONFIG_FAN_RPM_MAX 5000
#define CONFIG_FAN_RPM_MIN 1000
#define CONFIG_TEMP_SENSOR
diff --git a/test/thermal.c b/test/thermal.c
index fb10b1cd1e..deaac2f631 100644
--- a/test/thermal.c
+++ b/test/thermal.c
@@ -62,7 +62,7 @@ void host_throttle_cpu(int throttled)
host_throttled = throttled;
}
-void pwm_fan_set_percent_needed(int pct)
+void fan_set_percent_needed(int pct)
{
fan_pct = pct;
}
diff --git a/test/thermal_falco.c b/test/thermal_falco.c
index 87a00f57bb..1452a12692 100644
--- a/test/thermal_falco.c
+++ b/test/thermal_falco.c
@@ -81,7 +81,7 @@ void host_throttle_cpu(int throttled)
host_throttled = throttled;
}
-void pwm_fan_set_percent_needed(int pct)
+void fan_set_percent_needed(int pct)
{
fan_pct = pct;
}