device property: Introduce fwnode_device_is_compatible() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 5 Oct 2022 15:29:46 +0000 (18:29 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Nov 2022 11:09:04 +0000 (13:09 +0200)
commita521075d0ab389ec5e1b52a2af01ad41b3cf9792
tree04cdd209ddfdcc219806182c5f5e96842f791a81
parent03e9491fff252a7435e109333ec51ca2d619b759
device property: Introduce fwnode_device_is_compatible() helper

The fwnode_device_is_compatible() helper searches for the
given string in the "compatible" string array property and,
if found, returns true.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
include/linux/property.h