libfdt: fdt_address_cells() and fdt_size_cells()
authorMatthias Brugger <mbrugger@suse.com>
Thu, 5 Sep 2019 08:48:46 +0000 (10:48 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commitce2dae3a44ccc2fe87a9589e3a70ba51885930ab
tree5ee8dbb8b71304694dfac3ee1d2056713bf1d363
parent073e6d65d138edd015ece4d94dcfe2a3e00dccde
libfdt: fdt_address_cells() and fdt_size_cells()

Add internal fdt_cells() to avoid copy and paste. Fix typo in
fdt_size_cells() documentation comment.

This is based in upstream commit:
c12b2b0 ("libfdt: fdt_address_cells() and fdt_size_cells()")
but misses the test cases, as we don't implement them in U-Boot.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
scripts/dtc/libfdt/fdt_addresses.c
scripts/dtc/libfdt/libfdt.h