pinctrl: rzn1: Make array reg_drive static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 7 Oct 2019 14:05:59 +0000 (15:05 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 14 Oct 2019 10:11:12 +0000 (12:11 +0200)
commit126c9cb9997dc8bd27f48303c10220feb9aec9ba
tree638138782ad7f6e5e1ef2cf67cf8304da929d1ce
parent930d3a4907ae6cdb476db23fc7caa86e9de1e557
pinctrl: rzn1: Make array reg_drive static, makes object smaller

Don't populate the array reg_drive on the stack but instead make it
static. Makes the object code smaller by 32 bytes.

Before:
   text    data     bss     dec     hex filename
  31991   15696       0   47687    ba47 drivers/pinctrl/pinctrl-rzn1.o

After:
   text    data     bss     dec     hex filename
  31863   15792       0   47655    ba27 drivers/pinctrl/pinctrl-rzn1.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191007140559.11840-1-colin.king@canonical.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/pinctrl-rzn1.c