]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: use compatible lists to find mdp node
authorKrishna Manikandan <quic_mkrishn@quicinc.com>
Wed, 10 Nov 2021 10:51:47 +0000 (16:21 +0530)
committerRob Clark <robdclark@chromium.org>
Tue, 30 Nov 2021 00:19:58 +0000 (16:19 -0800)
commit9e88637a84531056a802c6cf1cb76ed145bbbe3c
tree41a13942456bf95faa6c4498af22c9b23f1b8482
parent6e39f790e8b4c12c75b2bd1c5d9d82d8d04685f6
drm/msm: use compatible lists to find mdp node

In the current implementation, substring comparison
using device node name is used to find mdp node
during driver probe. Use compatible string list instead
of node name to get mdp node from the parent mdss node.

Signed-off-by: Krishna Manikandan <quic_mkrishn@quicinc.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Changes in v2:
  - Use compatible lists instead of duplicate string
    check (Stephen Boyd)

Changes in v3:
  - Use match tables to find the mdp node (Stephen Boyd)

Changes in v4:
  - Drop EXPORT_SYMBOL (Dmitry Baryshkov)
Link: https://lore.kernel.org/r/1636541507-5144-1-git-send-email-quic_mkrishn@quicinc.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_kms.h