summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-qcom-ufs-qmp-20nm.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-15 09:33:51 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2015-08-03 15:05:09 +0200
commit4a9e5ca1a54a3cb4a5f85359f646638cec567607 (patch)
tree9f6048b6e0411c574ad9a6365bab0fe703c0ebf3 /drivers/phy/phy-qcom-ufs-qmp-20nm.c
parentphy: ulpi_phy: Add const qualifier to ops (diff)
downloadlinux-4a9e5ca1a54a3cb4a5f85359f646638cec567607.tar.xz
linux-4a9e5ca1a54a3cb4a5f85359f646638cec567607.zip
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>
Diffstat (limited to 'drivers/phy/phy-qcom-ufs-qmp-20nm.c')
-rw-r--r--drivers/phy/phy-qcom-ufs-qmp-20nm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/phy-qcom-ufs-qmp-20nm.c b/drivers/phy/phy-qcom-ufs-qmp-20nm.c
index fde8c876823b..b16ea77d07b9 100644
--- a/drivers/phy/phy-qcom-ufs-qmp-20nm.c
+++ b/drivers/phy/phy-qcom-ufs-qmp-20nm.c
@@ -171,7 +171,7 @@ static int ufs_qcom_phy_qmp_20nm_is_pcs_ready(struct ufs_qcom_phy *phy_common)
return err;
}
-static struct phy_ops ufs_qcom_phy_qmp_20nm_phy_ops = {
+static const struct phy_ops ufs_qcom_phy_qmp_20nm_phy_ops = {
.init = ufs_qcom_phy_qmp_20nm_init,
.exit = ufs_qcom_phy_exit,
.power_on = ufs_qcom_phy_power_on,