phy: qcom-qmp: make a const array static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Feb 2021 18:03:13 +0000 (18:03 +0000)
committerVinod Koul <vkoul@kernel.org>
Sat, 6 Feb 2021 10:03:22 +0000 (15:33 +0530)
commit43851904cbd7c7bb18c84cc553b6232ace23747b
treea6b553431bcff72585d17cfff0c44654ae646b8d
parent3dbbc8e97cb267ef2af03e5545211f260291f830
phy: qcom-qmp: make a const array static, makes object smaller

Don't populate the const array cfg1_settings on the stack but instead make
it static. Makes the object code smaller by 24 bytes:

Before:
   text    data     bss     dec     hex filename
  73585   20240      64   93889   16ec1 drivers/phy/qualcomm/phy-qcom-qmp.o

After:
   text    data     bss     dec     hex filename
  73465   20336      64   93865   16ea9 drivers/phy/qualcomm/phy-qcom-qmp.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210204180313.108876-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp.c