OSDN Git Service

mmc: dw_mmc: make const arrays mszs static
authorColin Ian King <colin.king@canonical.com>
Sun, 3 Sep 2017 13:39:50 +0000 (14:39 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:45:56 +0000 (11:45 +0100)
commit27d70d368021160fada401d3e2641fbd38a9d10a
treece36d6accb1e8474ce77dd5f119cf10e8539202b
parent2afcbdb0d88b41dace18d7dd2ace62ce4b997319
mmc: dw_mmc: make const arrays mszs static

Don't populate the const arrays mszs on the stack, instead make them
static. Makes the object code smaller by over 310 bytes:

Before:
   text    data     bss     dec     hex filename
  47527    8528     320   56375    dc37 drivers/mmc/host/dw_mmc.o

After:
   text    data     bss     dec     hex filename
  47055    8688     320   56063    daff drivers/mmc/host/dw_mmc.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c