u-boot/include/dt-structs.h
Simon Glass b145b45b0c dtoc: Rename the auto-generated dt-structs.h file
The filename of the auto-generated file is the same as the file that
includes it. Even though the form is in the generated/ subdirectory, this
could be confused.

Rename the generated file to something that makes it clear it is
auto-generated.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
2017-09-15 05:27:48 -06:00

29 lines
436 B
C

/*
* Copyright (c) 2016 Google, Inc
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __DT_STRUCTS
#define __DT_STRUCTS
/* These structures may only be used in SPL */
#if CONFIG_IS_ENABLED(OF_PLATDATA)
struct phandle_0_arg {
const void *node;
int arg[0];
};
struct phandle_1_arg {
const void *node;
int arg[1];
};
struct phandle_2_arg {
const void *node;
int arg[2];
};
#include <generated/dt-structs-gen.h>
#endif
#endif