fdtdec: encapsulate dtb_dt_embedded() within
authorEvgeny Bachinin <EABachinin@salutedevices.com>
Tue, 10 Dec 2024 22:39:57 +0000 (01:39 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 31 Dec 2024 16:57:50 +0000 (10:57 -0600)
commit623f5cf517ae0e0f6f7132ac6411ea0a8dd9b3f7
treed1cb9297235095524001153a9cb2b69ba43b401f
parentb841e559cd26ffcb20f22e8ee75debed9616c002
fdtdec: encapsulate dtb_dt_embedded() within

  Patch keeps the access to dtb_dt_embedded() within fdtdec API,
by means of new API function introduction. This new function is a
common place for updating appropriate global_data fields for
OF_EMBED case.

  Also, the consequence of the patch is movement of '___dtb_dt_*begin'
symbols' declaration from header file, because nobody used symbols
outside the lib/fdtdec.c.

Signed-off-by: Evgeny Bachinin <EABachinin@salutedevices.com>
Suggested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/board_r.c
include/fdtdec.h
lib/fdtdec.c