mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
We want to support more than one phandle argument. It makes sense to use an array for this rather than discrete struct members. Adjust the code to support this. Rename the member to 'arg' instead of 'id'. Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Kever Yang <kever.yang@rock-chips.com>
24 lines
373 B
C
24 lines
373 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];
|
|
};
|
|
#include <generated/dt-structs.h>
|
|
#endif
|
|
|
|
#endif
|