Skip to content

Commit 728ac1b

Browse files
rikardfalkebornkishon
authored andcommitted
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: Rikard Falkeborn <rikard.falkeborn@gmail.com> Link: https://lore.kernel.org/r/20200516120441.7627-2-rikard.falkeborn@gmail.com Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent c79cc3d commit 728ac1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/phy/broadcom/phy-bcm-ns2-usbdrd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ static irqreturn_t gpio_irq_handler(int irq, void *dev_id)
279279
return IRQ_HANDLED;
280280
}
281281

282-
static struct phy_ops ops = {
282+
static const struct phy_ops ops = {
283283
.init = ns2_drd_phy_init,
284284
.power_on = ns2_drd_phy_poweron,
285285
.power_off = ns2_drd_phy_poweroff,

0 commit comments

Comments
 (0)