mbox series

[v4,0/3] Make fwnode_property_get_reference_args accept NULL args

Message ID 20231103083625.1229008-1-sakari.ailus@linux.intel.com (mailing list archive)
Headers show
Series Make fwnode_property_get_reference_args accept NULL args | expand

Message

Sakari Ailus Nov. 3, 2023, 8:36 a.m. UTC
Hi all,

The of_parse_phandle_with_args() accepts NULL args but
fwnode_property_get_reference_args() does not currently, in its ACPI or
software node implementations. Fix this.

since v3:

- Return 0 early if args is NULL (1st patch).

since v2:

- Correct fwnode_property_get_reference_args() name (was
  fwnode_property_get_reference()) in commit messages.

since v1:

- Applies to Rafael's devprop branch now (i.e. not on top of DisCo for
  Imaging set).

- Add Fixes: tags.

- Small documentation line wrap change in the first patch.

Sakari Ailus (3):
  acpi: property: Let args be NULL in __acpi_node_get_property_reference
  software node: Let args be NULL in software_node_get_reference_args
  device property: fwnode_property_get_reference_args allows NULL args
    now

 drivers/acpi/property.c | 4 ++++
 drivers/base/property.c | 1 +
 drivers/base/swnode.c   | 3 +++
 3 files changed, 8 insertions(+)