device property: fwnode_property_get_reference_args allows NULL args now
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 9 Nov 2023 10:10:10 +0000 (12:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2023 02:35:26 +0000 (11:35 +0900)
All three fwnode_property_get_reference_args() implemantations now allow
args argument to be NULL. Document this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20231109101010.1329587-4-sakari.ailus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c

index 8c40abed785247b6262aac141d6f02f876a66835..8667b13639d2b3a0d5b8f6cc64ae5392a10f71be 100644 (file)
@@ -508,6 +508,7 @@ EXPORT_SYMBOL_GPL(fwnode_property_match_string);
  * @nargs:     Number of arguments. Ignored if @nargs_prop is non-NULL.
  * @index:     Index of the reference, from zero onwards.
  * @args:      Result structure with reference and integer arguments.
+ *             May be NULL.
  *
  * Obtain a reference based on a named property in an fwnode, with
  * integer arguments.