diff options
author | Jeremy Bettis <jbettis@google.com> | 2022-11-23 13:30:51 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-29 20:07:59 +0000 |
commit | 9a8d82d6dd9aadfdfb790e9af8ee3f5663bbbdeb (patch) | |
tree | d6eeb5e4cae9bcdf9571ac07e02d23ed854b99be | |
parent | f67381c09cbea0089fd618712aa1d2fbb0e01d7c (diff) | |
download | chrome-ec-9a8d82d6dd9aadfdfb790e9af8ee3f5663bbbdeb.tar.gz |
ec: IWYU Add missing includes
There are some circular include problems here also.
Add "config.h" for CONFIG_ZEPHYR.
Add <zephyr/devicetree.h> for DT_NODE_EXISTS
Add <stddef.h> for size_t
Add <sys/types.h> for ssize_t
Add "gpio_signal.h" for enum gpio_signal
BRANCH=None
BUG=b:247100970
TEST=zmake build -a
TEST=./twister --clobber -v -i
TEST=make -j72 buildall_only runtests
TEST=zmake compare-builds
Signed-off-by: Jeremy Bettis <jbettis@google.com>
Change-Id: Ifbadcba90c2c0774713dc7ed3992e58f1d15d70d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4052766
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Commit-Queue: Jeremy Bettis <jbettis@chromium.org>
Tested-by: Jeremy Bettis <jbettis@chromium.org>
Reviewed-by: Yuval Peress <peress@google.com>
Auto-Submit: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r-- | driver/accel_bma4xx.h | 5 | ||||
-rw-r--r-- | driver/fingerprint/fpc/bep/fpc_sensor_spi.h | 3 | ||||
-rw-r--r-- | driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/driver/accel_bma4xx.h b/driver/accel_bma4xx.h index 0e5c24e8aa..778150e30a 100644 --- a/driver/accel_bma4xx.h +++ b/driver/accel_bma4xx.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_ACCEL_BMA4XX_H #define __CROS_EC_ACCEL_BMA4XX_H +#include "config.h" + #define BMA4_I2C_ADDR_PRIMARY 0x18 #define BMA4_I2C_ADDR_SECONDARY 0x19 #define BMA4_I2C_BMM150_ADDR 0x10 @@ -194,6 +196,8 @@ extern const struct accelgyro_drv bma4_accel_drv; #if defined(CONFIG_ZEPHYR) +#include <zephyr/devicetree.h> + #if DT_NODE_EXISTS(DT_ALIAS(bma4xx_int)) /* * Get the motion sensor ID of the BMA4xx sensor that generates the interrupt. @@ -210,6 +214,7 @@ extern const struct accelgyro_drv bma4_accel_drv; #define CONFIG_ACCEL_BMA4XX_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(SENSOR_ID(DT_ALIAS(bma4xx_int))) +#include "gpio_signal.h" void bma4xx_interrupt(enum gpio_signal signal); #endif /* DT_NODE_EXISTS */ #endif /* CONFIG_ZEPHYR */ diff --git a/driver/fingerprint/fpc/bep/fpc_sensor_spi.h b/driver/fingerprint/fpc/bep/fpc_sensor_spi.h index ad7e5411d8..015bc03dae 100644 --- a/driver/fingerprint/fpc/bep/fpc_sensor_spi.h +++ b/driver/fingerprint/fpc/bep/fpc_sensor_spi.h @@ -14,8 +14,9 @@ * fingerprint sensor. */ -#include <stdint.h> #include <stdbool.h> +#include <stddef.h> +#include <stdint.h> typedef bool (*fpc_wfi_check_t)(void); diff --git a/driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h b/driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h index 7dda6d46de..834f7394e4 100644 --- a/driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h +++ b/driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h @@ -5,8 +5,11 @@ #ifndef BIOD_BIO_ALGORITHM_H_ #define BIOD_BIO_ALGORITHM_H_ +#include <stddef.h> #include <stdint.h> +#include <sys/types.h> + enum bio_algorithm_type { BIO_ALGORITHM_FINGERPRINT, BIO_ALGORITHM_IRIS, |