Skip to content

Commit 0cb5ebc

Browse files
rikardfalkebornvinodkoul
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6153224 commit 0cb5ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/phy/ti/phy-am654-serdes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct serdes_am654_clk_mux {
7272
#define to_serdes_am654_clk_mux(_hw) \
7373
container_of(_hw, struct serdes_am654_clk_mux, hw)
7474

75-
static struct regmap_config serdes_am654_regmap_config = {
75+
static const struct regmap_config serdes_am654_regmap_config = {
7676
.reg_bits = 32,
7777
.val_bits = 32,
7878
.reg_stride = 4,

0 commit comments

Comments
 (0)