summaryrefslogtreecommitdiff
path: root/src/mainboard/google/volteer/variants
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-10-05 21:40:38 -0600
committerFelix Singer <service+coreboot-gerrit@felixsinger.de>2024-11-10 19:12:06 +0000
commit93b4268fb794d334b913eb76a68e37597ad51caa (patch)
tree126d8ac7963bd2191ccc229911bfa50d73f85cfe /src/mainboard/google/volteer/variants
parent7b466fb60b7d3f7793baf419b8b67b4b324702f4 (diff)
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 <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84678 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Jayvik Desai <jayvik@google.com> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/volteer/variants')
-rw-r--r--src/mainboard/google/volteer/variants/collis/variant.c1
-rw-r--r--src/mainboard/google/volteer/variants/copano/variant.c1
-rw-r--r--src/mainboard/google/volteer/variants/delbin/variant.c1
-rw-r--r--src/mainboard/google/volteer/variants/drobit/variant.c1
-rw-r--r--src/mainboard/google/volteer/variants/volteer2/variant.c1
5 files changed, 5 insertions, 0 deletions
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 <fw_config.h>
#include <drivers/i2c/hid/chip.h>
#include <device/device.h>
+#include <static.h>
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 <fw_config.h>
#include <drivers/i2c/hid/chip.h>
#include <device/device.h>
+#include <static.h>
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 <fw_config.h>
#include <drivers/i2c/hid/chip.h>
#include <device/device.h>
+#include <static.h>
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 <fw_config.h>
#include <drivers/i2c/hid/chip.h>
#include <device/device.h>
+#include <static.h>
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 <baseboard/variants.h>
#include <soc/pci_devs.h>
#include <acpi/acpi_device.h>
+#include <static.h>
/*
* This function runs only on the volteer_ti50 variant, which has the GSC on a