phy: phy-brcm-usb: Constify static structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 16 May 2020 12:04:41 +0000 (14:04 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 18 May 2020 14:00:56 +0000 (19:30 +0530)
commitc79cc3d55c4bf94e9028d6818d449fbdc488eac5
tree73b6937ee08b3f6ffa6cbd329ba3687d09854bdf
parentcbe72af1a713f40e2ecd7f0b2c4580a7ab70fcd6
phy: phy-brcm-usb: Constify static structs

A number of structs were not modified and can therefore be made const
to allow the compiler to put them in read-only memory.

In order to do so, update a few functions that don't modify there input
to take pointers to const.

Before:
   text    data     bss     dec     hex filename
  15511    6448      64   22023    5607 drivers/phy/broadcom/phy-brcm-usb.o

After:
   text    data     bss     dec     hex filename
  16058    5936      64   22058    562a drivers/phy/broadcom/phy-brcm-usb.o

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