aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-19 10:39:54 -0700
committerSimon Glass <sjg@chromium.org>2021-01-05 12:24:41 -0700
commitf05a7c5ba452c3cee34378ed2ecc206c1605fce1 (patch)
treebd005d9bfd45644cc1814c8dbab9de398a49c2fe /drivers
parentbfae6cc48afa5bc22703c93af70b27501900f56a (diff)
downloadu-boot-f05a7c5ba452c3cee34378ed2ecc206c1605fce1.zip
u-boot-f05a7c5ba452c3cee34378ed2ecc206c1605fce1.tar.gz
u-boot-f05a7c5ba452c3cee34378ed2ecc206c1605fce1.tar.bz2
sandbox: i2c: Move priv into a header file
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/sandbox_i2c.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c
index a61dfc0..c99e6de 100644
--- a/drivers/i2c/sandbox_i2c.c
+++ b/drivers/i2c/sandbox_i2c.c
@@ -10,15 +10,12 @@
#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)
{