phy: Constify struct phy_ops variables

The phy_ops variables are never modified after initialized in these
drivers, so make them const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
Axel Lin
2015-07-15 15:33:51 +08:00
committed by Kishon Vijay Abraham I
parent 42ad8f6721
commit 4a9e5ca1a5
31 changed files with 31 additions and 31 deletions

View File

@@ -126,7 +126,7 @@ static int qcom_ipq806x_sata_phy_exit(struct phy *generic_phy)
return 0;
}
static struct phy_ops qcom_ipq806x_sata_phy_ops = {
static const struct phy_ops qcom_ipq806x_sata_phy_ops = {
.init = qcom_ipq806x_sata_phy_init,
.exit = qcom_ipq806x_sata_phy_exit,
.owner = THIS_MODULE,