]> git.ipfire.org Git - thirdparty/linux.git/commit
device property: Document how to check for the property presence
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 18 Mar 2026 14:21:40 +0000 (15:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 15:09:36 +0000 (17:09 +0200)
commit70fa0c308aa2db6859c2ea22473d421bdde56668
treed201d270a06d7549d509505840792f6f4489ab02
parent7215e4552f31e53595eae56a834f7e286beecccc
device property: Document how to check for the property presence

Currently it's unclear if one may or may not rely on the error codes
returned from the property getters to check for the property presence.
Clarify this by updating kernel-doc for fwnode_property_*() and
device_property_*() where it's applicable.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Closes: https://lore.kernel.org/r/4b24f1f4-b395-467a-81b7-1334a2d48845@roeck-us.net
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20260318142404.2526642-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/property.c