dm: core: Reduce code size with dev_of_offset()
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:12 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:11:14 +0000 (16:11 -0400)
commit1701359f752b9622752df6a6c6a1326c225a5616
tree7bdc9520706948180e781da76345becbc39d7e7c
parent8d468a188f69424b3461ba681a26b95bb9679f53
dm: core: Reduce code size with dev_of_offset()

Update the function to mark it with the const attribute. Also avoid
calling it multiple times in the devfdt_get_addr_index() function.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/fdtaddr.c
include/dm/device.h