Skip to content

Commit 2ac9556

Browse files
Zijun Hurobherring
authored andcommitted
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 <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent eb50844 commit 2ac9556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/of.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct device_node {
6767
#endif
6868
};
6969

70-
#define MAX_PHANDLE_ARGS 16
70+
#define MAX_PHANDLE_ARGS NR_FWNODE_REFERENCE_ARGS
7171
struct of_phandle_args {
7272
struct device_node *np;
7373
int args_count;

0 commit comments

Comments
 (0)