diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-05-24 12:55:15 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-06-24 15:56:38 +0300 |
commit | 0cb5ebc749fde8562fb876f92ac5cc6e92bd89fb (patch) | |
tree | fd9b6b50b530b1f1e1c9c208bcc137277554d676 | |
parent | 6153224bef8b218ecf9bf541b6154ff72fc4c54b (diff) | |
download | linux-0cb5ebc749fde8562fb876f92ac5cc6e92bd89fb.tar.xz |
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>
-rw-r--r-- | drivers/phy/ti/phy-am654-serdes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/ti/phy-am654-serdes.c b/drivers/phy/ti/phy-am654-serdes.c index 0a166d5a6414..a174b3c3f010 100644 --- a/drivers/phy/ti/phy-am654-serdes.c +++ b/drivers/phy/ti/phy-am654-serdes.c @@ -72,7 +72,7 @@ struct serdes_am654_clk_mux { #define to_serdes_am654_clk_mux(_hw) \ container_of(_hw, struct serdes_am654_clk_mux, hw) -static struct regmap_config serdes_am654_regmap_config = { +static const struct regmap_config serdes_am654_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, |