]> git.baikalelectronics.ru Git - kernel.git/commit
of: add helper for getting endpoint node of specific identifiers
authorHyungwon Hwang <human.hwang@samsung.com>
Fri, 12 Jun 2015 12:59:01 +0000 (21:59 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 22 Jun 2015 10:56:51 +0000 (19:56 +0900)
commit2d1919d9c296407999f7ae3616237a0b8fc9d7ea
tree7260e81214d10d2d083b537555627f5b6ac3dd29
parentca50c64dd0cfe3c6612a57a92746881a93801647
of: add helper for getting endpoint node of specific identifiers

When there are multiple ports or multiple endpoints in a port, they have to be
distinguished by the value of reg property. It is common. The drivers can get
the specific endpoint in the specific port via this function. Now the drivers
have to implement this code in themselves or have to force the order of dt nodes
to get the right node.

Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
Acked-by: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/of/base.c
include/linux/of_graph.h