Re: [PATCH 2/2] device property: Add fwnode_property_get_reference_optional_args
From: Rob Herring
Date: Tue Apr 08 2025 - 09:18:46 EST
On Mon, Apr 7, 2025 at 5:37 PM Sean Anderson <sean.anderson@xxxxxxxxx> wrote:
>
> Add a fwnode variant of of_parse_phandle_with_optional_args to allow
> nargs_prop to be absent from the referenced node. This improves
> compatibility for references where the devicetree might not always have
> nargs_prop.
Can't we just make fwnode_property_get_reference_args() handle this
case? Or why is it not just a 1 line wrapper function?