diff options
author | Keith Short <keithshort@chromium.org> | 2022-02-11 15:46:24 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-25 21:08:55 +0000 |
commit | 9877be7ea518130372b6524898c950f2065e0304 (patch) | |
tree | 4120f10feed39d9a381cdcff0ed0daa9da4400a0 /common | |
parent | e420fea291a6fed8c5d5a237e1f07cbece74a57d (diff) | |
download | chrome-ec-9877be7ea518130372b6524898c950f2065e0304.tar.gz |
gpio: cleanup header usage for i2c
i2c.h only requires the enum gpio_signal, so use gpio_signal.h
instead of gpio.h.
The builld doesn't compare due to an ASSERT() calls in i2c-stm32f4.c
because the line numbers changed.
Before this change:
80068b2: f240 2332 movw r3, #562
80068b6: 48a4 ldr r0, [pc, #656]
80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail>
After this change:
80068b2: f44f 730d mov.w r3, #564
80068b6: 48a4 ldr r0, [pc, #656]
80068b8: f7fc fb1a bl 8002ef0 <panic_assert_fail>
BUG=b:218856245
BRANCH=none
TEST=compare_build.sh
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I0f9f428d5c575c444b9df69f71a0ed6c4b3e378c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3489094
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/mock/dp_alt_mode_mock.c | 1 | ||||
-rw-r--r-- | common/usb_common.c | 1 | ||||
-rw-r--r-- | common/usb_pd_alt_mode_dfp.c | 1 | ||||
-rw-r--r-- | common/usbc/dp_alt_mode.c | 1 | ||||
-rw-r--r-- | common/usbc/usb_tc_drp_acc_trysrc_sm.c | 1 | ||||
-rw-r--r-- | common/vboot/efs2.c | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/common/mock/dp_alt_mode_mock.c b/common/mock/dp_alt_mode_mock.c index c489d39830..29f76bdb7a 100644 --- a/common/mock/dp_alt_mode_mock.c +++ b/common/mock/dp_alt_mode_mock.c @@ -9,6 +9,7 @@ * section 5.2 */ +#include "console.h" #include "usb_dp_alt_mode.h" #include "mock/dp_alt_mode_mock.h" diff --git a/common/usb_common.c b/common/usb_common.c index 513dd4639c..dd06d1a310 100644 --- a/common/usb_common.c +++ b/common/usb_common.c @@ -15,6 +15,7 @@ #include "common.h" #include "console.h" #include "ec_commands.h" +#include "gpio.h" #include "hooks.h" #include "mkbp_event.h" #include "stdbool.h" diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c index c7ad4fb4e7..c15060769d 100644 --- a/common/usb_pd_alt_mode_dfp.c +++ b/common/usb_pd_alt_mode_dfp.c @@ -7,6 +7,7 @@ #include "chipset.h" #include "console.h" +#include "gpio.h" #include "task.h" #include "task_id.h" #include "timer.h" diff --git a/common/usbc/dp_alt_mode.c b/common/usbc/dp_alt_mode.c index 1ebc5d3d04..5cf3c03ba8 100644 --- a/common/usbc/dp_alt_mode.c +++ b/common/usbc/dp_alt_mode.c @@ -13,6 +13,7 @@ #include <stdint.h> #include "assert.h" #include "atomic.h" +#include "console.h" #include "usb_common.h" #include "usb_dp_alt_mode.h" #include "usb_pd.h" diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c index e40efb380c..3fe9871bdd 100644 --- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c +++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c @@ -7,6 +7,7 @@ #include "charge_state.h" #include "common.h" #include "console.h" +#include "gpio.h" #include "hooks.h" #include "system.h" #include "task.h" diff --git a/common/vboot/efs2.c b/common/vboot/efs2.c index e5c3b64f04..a410c274f5 100644 --- a/common/vboot/efs2.c +++ b/common/vboot/efs2.c @@ -16,6 +16,7 @@ #include "console.h" #include "crc8.h" #include "flash.h" +#include "gpio.h" #include "hooks.h" #include "sha256.h" #include "system.h" |