drm/msm: mdp4 lvds: get panel node via of graph parsing
authorArchit Taneja <architt@codeaurora.org>
Tue, 9 Jun 2015 08:47:22 +0000 (14:17 +0530)
committerRob Clark <robdclark@gmail.com>
Sat, 15 Aug 2015 22:27:23 +0000 (18:27 -0400)
commit3d6df06249277aabaf895951855c4ed704b038bb
tree9305857241bedfc1631cbe71ad41f5dc463ee538
parentf7009d266d8b2f4b54da42399aaa536d74fe3e7c
drm/msm: mdp4 lvds: get panel node via of graph parsing

We currently get the output connected to LVDS by looking for a phandle
called 'qcom,lvds-panel' under the mdp DT node.

Use the more standard of_graph approach to create an lvds output port,
and retrieve the panel node from the port's endpoint data.

v3
- Fix return value checks of of_graph_* calls.

Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c
drivers/gpu/drm/msm/msm_drv.h