dm: core: Move priv/plat structs for simple_bus to headers
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:03 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
With the new of-platdata, these need to be available to dt_platdata.c
so must be in header files. Move them.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/simple-bus.c
include/dm/simple_bus.h [new file with mode: 0644]

index 7dbcbec..b0c2c20 100644 (file)
@@ -5,12 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
-
-struct simple_bus_plat {
-       u32 base;
-       u32 size;
-       u32 target;
-};
+#include <dm/simple_bus.h>
 
 fdt_addr_t simple_bus_translate(struct udevice *dev, fdt_addr_t addr)
 {
diff --git a/include/dm/simple_bus.h b/include/dm/simple_bus.h
new file mode 100644 (file)
index 0000000..4ad4cc4
--- /dev/null
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2020 Google LLC
+ */
+
+#ifndef __DM_SIMPLE_BUS_H
+#define __DM_SIMPLE_BUS_H
+
+struct simple_bus_plat {
+       u32 base;
+       u32 size;
+       u32 target;
+};
+
+#endif