device property: Add fwnode_property_match_property_string()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 8 Aug 2023 16:27:56 +0000 (19:27 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 16 Nov 2023 19:10:26 +0000 (19:10 +0000)
commitfac4a535758851215d23d7d92879aeee5035f51d
tree320a90dee04a3f297c4050809b2aa91aee82a6c8
parent086386311b3620059d0253eda511f88ca4cdeceb
device property: Add fwnode_property_match_property_string()

Sometimes the users want to match the single value string property
against an array of predefined strings. Create a helper for them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230808162800.61651-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/base/property.c
include/linux/property.h