]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
of/fdt: Consolidate duplicate code into helper functions
authorYuntao Wang <yuntao.wang@linux.dev>
Sat, 15 Nov 2025 13:47:46 +0000 (21:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:07 +0000 (14:03 +0100)
commit7045d5970e16393c1ad3fd1b27c433b6c22c6dee
treeacdaa2fe673ec3580ceb0b7b4929da1b8f917a44
parentd0482ca91d76b337fd485a2437edabc530b3630f
of/fdt: Consolidate duplicate code into helper functions

[ Upstream commit 8278cb72c60399f6dc6300c409879fb4c7291513 ]

Currently, there are many pieces of nearly identical code scattered across
different places. Consolidate the duplicate code into helper functions to
improve maintainability and reduce the likelihood of errors.

Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
Link: https://patch.msgid.link/20251115134753.179931-2-yuntao.wang@linux.dev
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Stable-dep-of: bec5f6092bc1 ("of/fdt: Fix the len check in early_init_dt_check_for_elfcorehdr()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/fdt.c
include/linux/of_fdt.h