]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: i2c: Move priv into a header file
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:39:54 +0000 (10:39 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
Move this struct into a header file so that dtoc can include it in its
dt-platdata.c file.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/i2c.h [new file with mode: 0644]
drivers/i2c/sandbox_i2c.c

diff --git a/arch/sandbox/include/asm/i2c.h b/arch/sandbox/include/asm/i2c.h
new file mode 100644 (file)
index 0000000..b482be4
--- /dev/null
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2020 Google LLC
+ * Written by Simon Glass <sjg@chromium.org>
+ */
+
+#ifndef __asn_i2c_h
+#define __asn_i2c_h
+
+struct sandbox_i2c_priv {
+       bool test_mode;
+};
+
+#endif /* __asn_i2c_h */
index a61dfc096b3fa4b399dbc1366b7d9cc012bd5a75..c99e6de933279f1925be81042037ea957c7b66d6 100644 (file)
 #include <errno.h>
 #include <i2c.h>
 #include <log.h>
+#include <asm/i2c.h>
 #include <asm/test.h>
 #include <dm/acpi.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 
-struct sandbox_i2c_priv {
-       bool test_mode;
-};
-
 static int get_emul(struct udevice *dev, struct udevice **devp,
                    struct dm_i2c_ops **opsp)
 {