]> asedeno.scripts.mit.edu Git - linux.git/commit
of/device: use of_property_for_each_string to parse compatible strings
authorRob Herring <robh@kernel.org>
Fri, 21 Jul 2017 20:45:32 +0000 (15:45 -0500)
committerRob Herring <robh@kernel.org>
Tue, 1 Aug 2017 17:24:06 +0000 (12:24 -0500)
commitbc575064d688c8933a6ca51429bea9bc63628d3b
treefcece9b4269ea89e2c0500206a18a179c669bb98
parent7c6ffa0b2703bc8b23243bf262728004afe6656d
of/device: use of_property_for_each_string to parse compatible strings

Instead of directly parsing the compatible property, use the
of_property_for_each_string() helper to iterate over each compatible
string. This reduces the LoC and makes the functions easier to
understand.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/device.c