]> git.baikalelectronics.ru Git - kernel.git/commit
phy: sr-usb: Constify phy_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 16 May 2020 12:04:40 +0000 (14:04 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 18 May 2020 14:00:55 +0000 (19:30 +0530)
commit84d814df95c7b65998fd97dc9d721e5f7b5390ce
tree59544d551e9aa2114da454136f1c6c336eac3f7d
parent47c2ec5894489ee54552511cdf3cac3dbdf04c91
phy: sr-usb: 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
   4310    1244       0    5554    15b2 drivers/phy/broadcom/phy-bcm-sr-usb.o

After:
   text    data     bss     dec     hex filename
   4438    1116       0    5554    15b2 drivers/phy/broadcom/phy-bcm-sr-usb.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200516120441.7627-3-rikard.falkeborn@gmail.com
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-bcm-sr-usb.c