Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a9e5ca1 authored by Axel Lin's avatar Axel Lin Committed by Kishon Vijay Abraham I
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 42ad8f67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ static int armada375_usb_phy_init(struct phy *phy)
	return 0;
}

static struct phy_ops armada375_usb_phy_ops = {
static const struct phy_ops armada375_usb_phy_ops = {
	.init = armada375_usb_phy_init,
	.owner = THIS_MODULE,
};
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ static int bcm_kona_usb_phy_power_off(struct phy *gphy)
	return 0;
}

static struct phy_ops ops = {
static const struct phy_ops ops = {
	.init		= bcm_kona_usb_phy_init,
	.power_on	= bcm_kona_usb_phy_power_on,
	.power_off	= bcm_kona_usb_phy_power_off,
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ static struct phy *phy_berlin_sata_phy_xlate(struct device *dev,
	return priv->phys[i]->phy;
}

static struct phy_ops phy_berlin_sata_ops = {
static const struct phy_ops phy_berlin_sata_ops = {
	.power_on	= phy_berlin_sata_power_on,
	.power_off	= phy_berlin_sata_power_off,
	.owner		= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ static int phy_berlin_usb_power_on(struct phy *phy)
	return 0;
}

static struct phy_ops phy_berlin_usb_ops = {
static const struct phy_ops phy_berlin_usb_ops = {
	.power_on	= phy_berlin_usb_power_on,
	.owner		= THIS_MODULE,
};
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ static int brcm_sata_phy_init(struct phy *phy)
	return 0;
}

static struct phy_ops phy_ops_28nm = {
static const struct phy_ops phy_ops_28nm = {
	.init		= brcm_sata_phy_init,
	.owner		= THIS_MODULE,
};
Loading