OSDN Git Service

phy: qcom-qmp-combo: Introduce orientation variable
authorBjorn Andersson <quic_bjorande@quicinc.com>
Mon, 15 May 2023 03:27:39 +0000 (20:27 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 19 May 2023 17:47:19 +0000 (23:17 +0530)
commit815891eee668795deea07f5d1eb43e0d6089c930
treeff09865c938bcee19bf209e35dbfab03f82cc8fa
parent77cbca3a12d3b9501973bdecd28f28b5c2184bf2
phy: qcom-qmp-combo: Introduce orientation variable

In multiple places throughout the driver code has been written in
prepration for handling of orientation switching.

Introduce a typec_orientation in qmp_combo and fill out the various
"placeholders" with the associated logic. By initializing the
orientation to "normal" this change has no functional impact, but
reduces the size of the upcoming introduction of dynamic orientation
switching.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Abel Vesa <abel.vesa@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on HDK8450
Tested-by: Johan Hovold <johan+linaro@kernel.org> # X13s
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Link: https://lore.kernel.org/r/20230515032743.400170-5-quic_bjorande@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c