From 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 30 Oct 2020 21:38:53 -0600 Subject: common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include at all, so remove that include. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- include/dm/acpi.h | 1 + include/dm/ofnode.h | 2 ++ include/dm/read.h | 1 + 3 files changed, 4 insertions(+) (limited to 'include/dm') diff --git a/include/dm/acpi.h b/include/dm/acpi.h index e6951b6..7f1f2ef 100644 --- a/include/dm/acpi.h +++ b/include/dm/acpi.h @@ -28,6 +28,7 @@ #if !defined(__ACPI__) struct nhlt; +struct udevice; /** enum acpi_dump_option - selects what ACPI information to dump */ enum acpi_dump_option { diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 5b08865..5318d65 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -379,6 +379,8 @@ bool ofnode_read_bool(ofnode node, const char *propname); ofnode ofnode_find_subnode(ofnode node, const char *subnode_name); #if CONFIG_IS_ENABLED(DM_INLINE_OFNODE) +#include + static inline bool ofnode_is_enabled(ofnode node) { if (ofnode_is_np(node)) { diff --git a/include/dm/read.h b/include/dm/read.h index 03ba982..97575bc 100644 --- a/include/dm/read.h +++ b/include/dm/read.h @@ -695,6 +695,7 @@ int dev_decode_display_timing(const struct udevice *dev, int index, struct display_timing *config); #else /* CONFIG_DM_DEV_READ_INLINE is enabled */ +#include static inline int dev_read_u32(const struct udevice *dev, const char *propname, u32 *outp) -- cgit v1.1