From 93b4268fb794d334b913eb76a68e37597ad51caa Mon Sep 17 00:00:00 2001 From: Nicholas Chin Date: Sat, 5 Oct 2024 21:40:38 -0600 Subject: mb/google/*: Explicitly include static.h for DEV_PTR As per commit 05a13e7ed9b9 ("sconfig: Move (WEAK_)DEV_PTR from device.h to static.h"), sources that require access to devicetree static devices should directly include static.h. This allows static.h to be removed from device.h, eliminating unnecessary dependencies on the devicetree for objects that only need the device types and function declarations. The DEV_PTR macro resolves to names declared in static_devices.h, which is then included in static.h, so include the header whenever the macro is used. Change-Id: I05662e601af00866b7f26f4c6c6794b491bf676e Signed-off-by: Nicholas Chin Reviewed-on: https://review.coreboot.org/c/coreboot/+/84678 Reviewed-by: Angel Pons Reviewed-by: Jayvik Desai Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/mainboard/google/volteer/variants/collis/variant.c | 1 + src/mainboard/google/volteer/variants/copano/variant.c | 1 + src/mainboard/google/volteer/variants/delbin/variant.c | 1 + src/mainboard/google/volteer/variants/drobit/variant.c | 1 + src/mainboard/google/volteer/variants/volteer2/variant.c | 1 + 5 files changed, 5 insertions(+) (limited to 'src/mainboard/google/volteer/variants') diff --git a/src/mainboard/google/volteer/variants/collis/variant.c b/src/mainboard/google/volteer/variants/collis/variant.c index cdb165d523..a7f7a388d6 100644 --- a/src/mainboard/google/volteer/variants/collis/variant.c +++ b/src/mainboard/google/volteer/variants/collis/variant.c @@ -4,6 +4,7 @@ #include #include #include +#include static void audio_codec_update(void) { diff --git a/src/mainboard/google/volteer/variants/copano/variant.c b/src/mainboard/google/volteer/variants/copano/variant.c index cdb165d523..a7f7a388d6 100644 --- a/src/mainboard/google/volteer/variants/copano/variant.c +++ b/src/mainboard/google/volteer/variants/copano/variant.c @@ -4,6 +4,7 @@ #include #include #include +#include static void audio_codec_update(void) { diff --git a/src/mainboard/google/volteer/variants/delbin/variant.c b/src/mainboard/google/volteer/variants/delbin/variant.c index cdb165d523..a7f7a388d6 100644 --- a/src/mainboard/google/volteer/variants/delbin/variant.c +++ b/src/mainboard/google/volteer/variants/delbin/variant.c @@ -4,6 +4,7 @@ #include #include #include +#include static void audio_codec_update(void) { diff --git a/src/mainboard/google/volteer/variants/drobit/variant.c b/src/mainboard/google/volteer/variants/drobit/variant.c index cdb165d523..a7f7a388d6 100644 --- a/src/mainboard/google/volteer/variants/drobit/variant.c +++ b/src/mainboard/google/volteer/variants/drobit/variant.c @@ -4,6 +4,7 @@ #include #include #include +#include static void audio_codec_update(void) { diff --git a/src/mainboard/google/volteer/variants/volteer2/variant.c b/src/mainboard/google/volteer/variants/volteer2/variant.c index c9129b242d..f3c21cb698 100644 --- a/src/mainboard/google/volteer/variants/volteer2/variant.c +++ b/src/mainboard/google/volteer/variants/volteer2/variant.c @@ -3,6 +3,7 @@ #include #include #include +#include /* * This function runs only on the volteer_ti50 variant, which has the GSC on a -- cgit v1.2.3