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>
Tento commit je obsažen v:

odevzdal
Kishon Vijay Abraham I

rodič
42ad8f6721
revize
4a9e5ca1a5
@@ -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,
|
||||
};
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele