diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2025-02-25 21:58:07 +0800 |
---|---|---|
committer | Rob Herring (Arm) <robh@kernel.org> | 2025-02-26 13:15:57 -0600 |
commit | 2ac95560fbe1946f0faf51d8db62f6f2b67ee5a3 (patch) | |
tree | 02c75017de02d3330bd2f9a513d5d2f6a52e880d | |
parent | eb50844d728f11e87491f7c7af15a4a737f1159d (diff) |
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>
-rw-r--r-- | include/linux/of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index eaf0e2a2b75c..86bf8f073111 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -67,7 +67,7 @@ struct device_node { #endif }; -#define MAX_PHANDLE_ARGS 16 +#define MAX_PHANDLE_ARGS NR_FWNODE_REFERENCE_ARGS struct of_phandle_args { struct device_node *np; int args_count; |