diff options
author | Tom Hughes <tomhughes@chromium.org> | 2021-10-21 23:52:55 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-12 20:05:39 +0000 |
commit | 2f128a15b96b61257a4ec04b7618deac0913ba16 (patch) | |
tree | 0de9cf363cc24961e42bd4b9474420368925eafa /power/mt8192.c | |
parent | 4aa63cc82579609a0b3f1b9504a5e54d83c7bfbf (diff) | |
download | chrome-ec-2f128a15b96b61257a4ec04b7618deac0913ba16.tar.gz |
power: Combine chipset_reset_reason and chipset_shutdown_reason
When building with clang, it warns:
power/amd_x86.c:59:18: error: implicit conversion from enumeration type
'enum chipset_reset_reason' to different enumeration type 'enum
chipset_shutdown_reason' [-Werror,-Wenum-conversion]
report_ap_reset(reason);
The two enums are already set up so that they don't overlap, so just
combine them into a single enum.
BRANCH=none
BUG=b:172020503
TEST=./util/compare_build.sh -b all -j 120
=> All boards match, except:
burnet cerise damu fennel jacuzzi juniper kakadu kappa katsu kodama
krane kukui makomo stern willow
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I47620e59e02a84c04dde4469f36ad37dccbcd9e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3238250
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'power/mt8192.c')
-rw-r--r-- | power/mt8192.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/power/mt8192.c b/power/mt8192.c index 625f3a0004..5a4bafe600 100644 --- a/power/mt8192.c +++ b/power/mt8192.c @@ -170,7 +170,7 @@ void chipset_exit_hard_off_button(void) } DECLARE_DEFERRED(chipset_exit_hard_off_button); -void chipset_reset(enum chipset_reset_reason reason) +void chipset_reset(enum chipset_shutdown_reason reason) { CPRINTS("%s: %d", __func__, reason); report_ap_reset(reason); |