]> www.infradead.org Git - users/jedix/linux-maple.git/commit
of: Align macro MAX_PHANDLE_ARGS with NR_FWNODE_REFERENCE_ARGS
authorZijun Hu <quic_zijuhu@quicinc.com>
Tue, 25 Feb 2025 13:58:07 +0000 (21:58 +0800)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 26 Feb 2025 19:15:57 +0000 (13:15 -0600)
commit2ac95560fbe1946f0faf51d8db62f6f2b67ee5a3
tree02c75017de02d3330bd2f9a513d5d2f6a52e880d
parenteb50844d728f11e87491f7c7af15a4a737f1159d
of: Align macro MAX_PHANDLE_ARGS with NR_FWNODE_REFERENCE_ARGS

Macro NR_FWNODE_REFERENCE_ARGS defines the maximal argument count
for firmware node reference, and MAX_PHANDLE_ARGS defines the maximal
argument count for DT node reference, both have the same value now.

To void argument count inconsistency between firmware and DT, simply
align both macros by '#define MAX_PHANDLE_ARGS NR_FWNODE_REFERENCE_ARGS'.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250225-fix_arg_count-v4-2-13cdc519eb31@quicinc.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
include/linux/of.h