diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-06-27 13:30:03 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-06-30 21:15:04 +0000 |
commit | 54155a58aa8902b2d7c0a31eed04f33dad5342e2 (patch) | |
tree | 508c8f7a16881fc0696dec50dbf1eb71b38a6a23 /board/dewatt | |
parent | d42d801c1bc0d2bda99bef1fca3fef6f80a769b0 (diff) | |
download | chrome-ec-54155a58aa8902b2d7c0a31eed04f33dad5342e2.tar.gz |
board/dewatt/thermal.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Change-Id: I2cc1e224672f708f0f6c46404b891db3dceeade9
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3728201
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/dewatt')
-rw-r--r-- | board/dewatt/thermal.c | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/board/dewatt/thermal.c b/board/dewatt/thermal.c index 0d0d80095a..c35de5775b 100644 --- a/board/dewatt/thermal.c +++ b/board/dewatt/thermal.c @@ -12,7 +12,7 @@ /* Console output macros */ #define CPUTS(outstr) cputs(CC_THERMAL, outstr) -#define CPRINTS(format, args...) cprints(CC_THERMAL, format, ## args) +#define CPRINTS(format, args...) cprints(CC_THERMAL, format, ##args) const struct fan_conf fan_conf_0 = { .flags = FAN_USE_RPM_MODE, @@ -93,14 +93,14 @@ struct fan_step { }; static const struct fan_step fan_table[] = { - {.on = 0, .off = 1, .rpm = 0}, - {.on = 6, .off = 2, .rpm = 3000}, - {.on = 28, .off = 15, .rpm = 3300}, - {.on = 34, .off = 26, .rpm = 3700}, - {.on = 39, .off = 32, .rpm = 4000}, - {.on = 45, .off = 38, .rpm = 4300}, - {.on = 51, .off = 43, .rpm = 4700}, - {.on = 74, .off = 62, .rpm = 5400}, + { .on = 0, .off = 1, .rpm = 0 }, + { .on = 6, .off = 2, .rpm = 3000 }, + { .on = 28, .off = 15, .rpm = 3300 }, + { .on = 34, .off = 26, .rpm = 3700 }, + { .on = 39, .off = 32, .rpm = 4000 }, + { .on = 45, .off = 38, .rpm = 4300 }, + { .on = 51, .off = 43, .rpm = 4700 }, + { .on = 74, .off = 62, .rpm = 5400 }, }; #define NUM_FAN_LEVELS ARRAY_SIZE(fan_table) @@ -137,10 +137,8 @@ int fan_percent_to_rpm(int fan, int pct) previous_pct = pct; - if (fan_table[current_level].rpm != - fan_get_rpm_target(FAN_CH(fan))) - CPRINTS("Setting fan RPM to %d", - fan_table[current_level].rpm); + if (fan_table[current_level].rpm != fan_get_rpm_target(FAN_CH(fan))) + CPRINTS("Setting fan RPM to %d", fan_table[current_level].rpm); return fan_table[current_level].rpm; } |