Commit b4e9da4d authored by Johan Hovold's avatar Johan Hovold Committed by Vinod Koul

phy: qcom-qmp: drop unused index field

Only the MSM8996 PCIe QMP driver uses the index field so drop it from
the other drivers.
Signed-off-by: default avatarJohan Hovold <johan+linaro@kernel.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20220920073826.20811-12-johan+linaro@kernel.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a4683acf
...@@ -906,7 +906,6 @@ struct qmp_phy_combo_cfg { ...@@ -906,7 +906,6 @@ struct qmp_phy_combo_cfg {
* @pcs_misc: iomapped memory space for lane's pcs_misc * @pcs_misc: iomapped memory space for lane's pcs_misc
* @pcs_usb: iomapped memory space for lane's pcs_usb * @pcs_usb: iomapped memory space for lane's pcs_usb
* @pipe_clk: pipe clock * @pipe_clk: pipe clock
* @index: lane index
* @qmp: QMP phy to which this lane belongs * @qmp: QMP phy to which this lane belongs
* @mode: current PHY mode * @mode: current PHY mode
* @dp_aux_cfg: Display port aux config * @dp_aux_cfg: Display port aux config
...@@ -925,7 +924,6 @@ struct qmp_phy { ...@@ -925,7 +924,6 @@ struct qmp_phy {
void __iomem *pcs_misc; void __iomem *pcs_misc;
void __iomem *pcs_usb; void __iomem *pcs_usb;
struct clk *pipe_clk; struct clk *pipe_clk;
unsigned int index;
struct qcom_qmp *qmp; struct qcom_qmp *qmp;
enum phy_mode mode; enum phy_mode mode;
unsigned int dp_aux_cfg; unsigned int dp_aux_cfg;
...@@ -2779,7 +2777,6 @@ static int qmp_combo_create(struct device *dev, struct device_node *np, int id, ...@@ -2779,7 +2777,6 @@ static int qmp_combo_create(struct device *dev, struct device_node *np, int id,
} }
qphy->phy = generic_phy; qphy->phy = generic_phy;
qphy->index = id;
qphy->qmp = qmp; qphy->qmp = qmp;
qmp->phys[id] = qphy; qmp->phys[id] = qphy;
phy_set_drvdata(generic_phy, qphy); phy_set_drvdata(generic_phy, qphy);
......
...@@ -1371,7 +1371,6 @@ struct qmp_phy_cfg { ...@@ -1371,7 +1371,6 @@ struct qmp_phy_cfg {
* @rx2: iomapped memory space for second lane's rx (in dual lane PHYs) * @rx2: iomapped memory space for second lane's rx (in dual lane PHYs)
* @pcs_misc: iomapped memory space for lane's pcs_misc * @pcs_misc: iomapped memory space for lane's pcs_misc
* @pipe_clk: pipe clock * @pipe_clk: pipe clock
* @index: lane index
* @qmp: QMP phy to which this lane belongs * @qmp: QMP phy to which this lane belongs
*/ */
struct qmp_phy { struct qmp_phy {
...@@ -1385,7 +1384,6 @@ struct qmp_phy { ...@@ -1385,7 +1384,6 @@ struct qmp_phy {
void __iomem *rx2; void __iomem *rx2;
void __iomem *pcs_misc; void __iomem *pcs_misc;
struct clk *pipe_clk; struct clk *pipe_clk;
unsigned int index;
struct qcom_qmp *qmp; struct qcom_qmp *qmp;
}; };
...@@ -2264,7 +2262,6 @@ static int qmp_pcie_create(struct device *dev, struct device_node *np, int id, ...@@ -2264,7 +2262,6 @@ static int qmp_pcie_create(struct device *dev, struct device_node *np, int id,
} }
qphy->phy = generic_phy; qphy->phy = generic_phy;
qphy->index = id;
qphy->qmp = qmp; qphy->qmp = qmp;
qmp->phys[id] = qphy; qmp->phys[id] = qphy;
phy_set_drvdata(generic_phy, qphy); phy_set_drvdata(generic_phy, qphy);
......
...@@ -580,7 +580,6 @@ struct qmp_phy_cfg { ...@@ -580,7 +580,6 @@ struct qmp_phy_cfg {
* @tx2: iomapped memory space for second lane's tx (in dual lane PHYs) * @tx2: iomapped memory space for second lane's tx (in dual lane PHYs)
* @rx2: iomapped memory space for second lane's rx (in dual lane PHYs) * @rx2: iomapped memory space for second lane's rx (in dual lane PHYs)
* @pcs_misc: iomapped memory space for lane's pcs_misc * @pcs_misc: iomapped memory space for lane's pcs_misc
* @index: lane index
* @qmp: QMP phy to which this lane belongs * @qmp: QMP phy to which this lane belongs
*/ */
struct qmp_phy { struct qmp_phy {
...@@ -593,7 +592,6 @@ struct qmp_phy { ...@@ -593,7 +592,6 @@ struct qmp_phy {
void __iomem *tx2; void __iomem *tx2;
void __iomem *rx2; void __iomem *rx2;
void __iomem *pcs_misc; void __iomem *pcs_misc;
unsigned int index;
struct qcom_qmp *qmp; struct qcom_qmp *qmp;
}; };
...@@ -1149,7 +1147,6 @@ static int qmp_ufs_create(struct device *dev, struct device_node *np, int id, ...@@ -1149,7 +1147,6 @@ static int qmp_ufs_create(struct device *dev, struct device_node *np, int id,
} }
qphy->phy = generic_phy; qphy->phy = generic_phy;
qphy->index = id;
qphy->qmp = qmp; qphy->qmp = qmp;
qmp->phys[id] = qphy; qmp->phys[id] = qphy;
phy_set_drvdata(generic_phy, qphy); phy_set_drvdata(generic_phy, qphy);
......
...@@ -1491,7 +1491,6 @@ struct qmp_phy_cfg { ...@@ -1491,7 +1491,6 @@ struct qmp_phy_cfg {
* @pcs_misc: iomapped memory space for lane's pcs_misc * @pcs_misc: iomapped memory space for lane's pcs_misc
* @pcs_usb: iomapped memory space for lane's pcs_usb * @pcs_usb: iomapped memory space for lane's pcs_usb
* @pipe_clk: pipe clock * @pipe_clk: pipe clock
* @index: lane index
* @qmp: QMP phy to which this lane belongs * @qmp: QMP phy to which this lane belongs
* @mode: current PHY mode * @mode: current PHY mode
*/ */
...@@ -1507,7 +1506,6 @@ struct qmp_phy { ...@@ -1507,7 +1506,6 @@ struct qmp_phy {
void __iomem *pcs_misc; void __iomem *pcs_misc;
void __iomem *pcs_usb; void __iomem *pcs_usb;
struct clk *pipe_clk; struct clk *pipe_clk;
unsigned int index;
struct qcom_qmp *qmp; struct qcom_qmp *qmp;
enum phy_mode mode; enum phy_mode mode;
}; };
...@@ -2648,7 +2646,6 @@ int qmp_usb_create(struct device *dev, struct device_node *np, int id, ...@@ -2648,7 +2646,6 @@ int qmp_usb_create(struct device *dev, struct device_node *np, int id,
} }
qphy->phy = generic_phy; qphy->phy = generic_phy;
qphy->index = id;
qphy->qmp = qmp; qphy->qmp = qmp;
qmp->phys[id] = qphy; qmp->phys[id] = qphy;
phy_set_drvdata(generic_phy, qphy); phy_set_drvdata(generic_phy, qphy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment