mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
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>
This commit is contained in:
parent
bfae6cc48a
commit
f05a7c5ba4
2 changed files with 15 additions and 4 deletions
14
arch/sandbox/include/asm/i2c.h
Normal file
14
arch/sandbox/include/asm/i2c.h
Normal file
|
@ -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 */
|
|
@ -10,15 +10,12 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <i2c.h>
|
#include <i2c.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
|
#include <asm/i2c.h>
|
||||||
#include <asm/test.h>
|
#include <asm/test.h>
|
||||||
#include <dm/acpi.h>
|
#include <dm/acpi.h>
|
||||||
#include <dm/lists.h>
|
#include <dm/lists.h>
|
||||||
#include <dm/device-internal.h>
|
#include <dm/device-internal.h>
|
||||||
|
|
||||||
struct sandbox_i2c_priv {
|
|
||||||
bool test_mode;
|
|
||||||
};
|
|
||||||
|
|
||||||
static int get_emul(struct udevice *dev, struct udevice **devp,
|
static int get_emul(struct udevice *dev, struct udevice **devp,
|
||||||
struct dm_i2c_ops **opsp)
|
struct dm_i2c_ops **opsp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue