]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: dm: test-fdt: Use fdtdec_get_int() in dm_check_devices()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 23 Aug 2023 19:37:44 +0000 (21:37 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 6 Sep 2023 17:51:19 +0000 (13:51 -0400)
commited48da33927c78e6523753f0969f696cf7bf6f9e
tree16cc61d29eedd3cf2983d362a6802ec065460ad1
parente342b91a08075266ac371ae1bfc9aa7dea71b5cf
test: dm: test-fdt: Use fdtdec_get_int() in dm_check_devices()

The current fdtdec_get_addr() takes into consideration #address-cells
and #size-cells for "ping-expect" property which is clearly neither.
Use fdtdec_get_int() instead and return negative one in case the
property is not in DT or the platform under test is not DT based,
i.e. mimic the current fdtdec_get_addr() behavior.

This fixes ut dm dm_test_bus_children test.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/test-fdt.c