Commit 728ac1ba authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Kishon Vijay Abraham I

phy: phy-bcm-ns2-usbdrd: Constify phy_ops

phy_ops are never modified and can therefore be made const to allow the
compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   7831    3144     128   11103    2b5f drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o

After:
   text    data     bss     dec     hex filename
   7959    3016     128   11103    2b5f drivers/phy/broadcom/phy-bcm-ns2-usbdrd.o
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200516120441.7627-2-rikard.falkeborn@gmail.comSigned-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent c79cc3d5
...@@ -279,7 +279,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id) ...@@ -279,7 +279,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static struct phy_ops ops = { static const struct phy_ops ops = {
.init = ns2_drd_phy_init, .init = ns2_drd_phy_init,
.power_on = ns2_drd_phy_poweron, .power_on = ns2_drd_phy_poweron,
.power_off = ns2_drd_phy_poweroff, .power_off = ns2_drd_phy_poweroff,
......
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