mfd: rtsx: Make arrays depth and cd_mask static const
authorColin Ian King <colin.king@canonical.com>
Fri, 30 Jun 2017 09:33:27 +0000 (10:33 +0100)
committerLee Jones <lee.jones@linaro.org>
Tue, 5 Sep 2017 07:45:59 +0000 (08:45 +0100)
commite26ae3660b9ca2d180131670ae5388580dcf19b3
tree078709fe46d407785c456c1caee31cb268e22cf3
parentff827cf5698b111b2e5f825cb9ee508115f94e8a
mfd: rtsx: Make arrays depth and cd_mask static const

Don't populate the arrays depath and cd_mask on the stack but make
them static const.  Makes the object code smaller:

   text    data     bss     dec     hex filename
  25413    7216     448   33077    8135 drivers/mfd/rtsx_pcr.o

   text    data     bss     dec     hex filename
  25151    7360     448   32959    80bf drivers/mfd/rtsx_pcr.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rtsx_pcr.c