OSDN Git Service

drm/msm/dp: Clean up pdev/dev duplication in dp_power
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 15 May 2023 03:02:56 +0000 (20:02 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Jun 2023 02:44:53 +0000 (05:44 +0300)
commit9edac2eec47c82dcb679a285c6d9bb4b6f21a1a9
tree72e56946ce1c2636f01fb4c35bed686a6bfa82a0
parent9f93258549dbc677898224b8c20d56d1eb96b66e
drm/msm/dp: Clean up pdev/dev duplication in dp_power

The dp_power module keeps track of both the DP controller's struct
platform_device and struct device - with the prior pulled out of the
dp_parser module.

Clean up the duplication by dropping the platform_device reference and
just track the passed struct device.

Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/536939/
Link: https://lore.kernel.org/r/20230515030256.300104-3-quic_bjorande@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_power.c