of: property: Improve finding the consumer of a remote-endpoint property
authorSaravana Kannan <saravanak@google.com>
Wed, 7 Feb 2024 01:18:00 +0000 (17:18 -0800)
committerRob Herring <robh@kernel.org>
Fri, 9 Feb 2024 10:32:09 +0000 (10:32 +0000)
commitf4653ec9861cd96a1a6a3258c4a807898ee8cf3c
treec267d944278d4760c6eb19cf8340a6ed9912deff
parent17adc3f329e922bd1dd5aee45f43d9dab351c1e9
of: property: Improve finding the consumer of a remote-endpoint property

We have a more accurate function to find the right consumer of a
remote-endpoint property instead of searching for a parent with
compatible string property. So, use that instead. While at it, make the
code to find the consumer a bit more flexible and based on the property
being parsed.

Fixes: f7514a663016 ("of: property: fw_devlink: Add support for remote-endpoint")
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20240207011803.2637531-2-saravanak@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/property.c