From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Sun, 10 Mar 2019 15:51:31 -0600 Subject: [U-Boot] [PATCH 2/6] fdtdec: Implement fdtdec_get_max_phandle() In-Reply-To: <20190308201140.2383-2-thierry.reding@gmail.com> References: <20190308201140.2383-1-thierry.reding@gmail.com> <20190308201140.2383-2-thierry.reding@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Thierry, On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > This function allows looking up the highest phandle value stored in a > device tree, which is useful to determine the next best phandle value > for new nodes. > > Signed-off-by: Thierry Reding > --- > include/fdtdec.h | 12 ++++++++++++ > lib/fdtdec.c | 28 ++++++++++++++++++++++++++++ > 2 files changed, 40 insertions(+) Can we use fdt_get_max_phandle() instead? If not, could you please add a bit more detail to the commit message as we might consider changing the upstream function. Regards, Simon