diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-05-16 14:04:41 +0200 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2020-05-18 19:30:56 +0530 |
commit | c79cc3d55c4bf94e9028d6818d449fbdc488eac5 (patch) | |
tree | 73b6937ee08b3f6ffa6cbd329ba3687d09854bdf /init/calibrate.c | |
parent | cbe72af1a713f40e2ecd7f0b2c4580a7ab70fcd6 (diff) | |
download | lwn-c79cc3d55c4bf94e9028d6818d449fbdc488eac5.tar.gz lwn-c79cc3d55c4bf94e9028d6818d449fbdc488eac5.zip |
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>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions