Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: ti: am654-serdes: Constify regmap_config

regmap_config is not modified and can be made static to allow the compiler
to put it in read-only memory.

Before:
text data bss dec hex filename
12328 3644 64 16036 3ea4 drivers/phy/ti/phy-am654-serdes.o

After:
text data bss dec hex filename
12648 3324 64 16036 3ea4 drivers/phy/ti/phy-am654-serdes.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200524095516.25227-2-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rikard Falkeborn and committed by
Vinod Koul
0cb5ebc7 6153224b

+1 -1
+1 -1
drivers/phy/ti/phy-am654-serdes.c
··· 72 72 #define to_serdes_am654_clk_mux(_hw) \ 73 73 container_of(_hw, struct serdes_am654_clk_mux, hw) 74 74 75 - static struct regmap_config serdes_am654_regmap_config = { 75 + static const struct regmap_config serdes_am654_regmap_config = { 76 76 .reg_bits = 32, 77 77 .val_bits = 32, 78 78 .reg_stride = 4,