]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit9e2cc842b0963fc2337b19dfddebfc32130a6664
tree7bdc9520706948180e781da76345becbc39d7e7c
parenta423025d7fbc7bc5414ec80348e9a9daae53bfac
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