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 /board | |
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 'board')
-rw-r--r-- | board/host/chipset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/host/chipset.c b/board/host/chipset.c index 3cb859eb29..5213d06acb 100644 --- a/board/host/chipset.c +++ b/board/host/chipset.c @@ -16,7 +16,7 @@ static int chipset_state = CHIPSET_STATE_SOFT_OFF; static int power_on_req; static int power_off_req; -test_mockable void chipset_reset(enum chipset_reset_reason reason) +test_mockable void chipset_reset(enum chipset_shutdown_reason reason) { fprintf(stderr, "Chipset reset: %d!\n", reason); } |