]> git.baikalelectronics.ru Git - kernel.git/commit
device property: Add fwnode_property_match_string()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 14 Sep 2015 14:37:35 +0000 (17:37 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 25 Sep 2015 00:00:19 +0000 (02:00 +0200)
commit9cd11f51e46d67a29734f5ad5cb7931364ff819f
tree72bde461108542c7afb05753288a442c80d03e4c
parent572ca8ae2316b8d85984e31c8200efbd54e0bed3
device property: Add fwnode_property_match_string()

Sometimes it is useful to be able to extract an index of certain string
value from an array of strings. A typical use case is to give a name to a
DMA channel, PWM, clock and so on.

Provide an implementation using unified device property accessors that
follows of_property_match_string() but works for all supported fwnodes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/property.c
include/linux/property.h