mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
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>
This commit is contained in:
parent
eb50844d72
commit
2ac95560fb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user