]> git.baikalelectronics.ru Git - kernel.git/commit
phy: allwinner: phy-sun6i-mipi-dphy: Constify structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 29 Jun 2020 19:57:27 +0000 (21:57 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 8 Jul 2020 11:16:08 +0000 (16:46 +0530)
commitbdbd8f42a1339ea691fc1604dcd07da021d8066f
tree0a05f43a38ec65961c0e297bda498d1602a847de
parent7cdc8c280ec44d3a1666faff01974d5161bc80d9
phy: allwinner: phy-sun6i-mipi-dphy: Constify structs

sun6i_dphy_ops and sun6i_dphy_regmap_config are not modified so make them
const structs to allow the compiler to put them in read-only memory.

Before:
   text    data     bss     dec     hex filename
   4407    1944      64    6415    190f drivers/phy/allwinner/phy-sun6i-mipi-dphy.o

After:
   text    data     bss     dec     hex filename
   4835    1496      64    6395    18fb drivers/phy/allwinner/phy-sun6i-mipi-dphy.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20200629195727.9717-1-rikard.falkeborn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/allwinner/phy-sun6i-mipi-dphy.c