summaryrefslogtreecommitdiff
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-28 18:23:39 +0000
committerLinus Walleij <linus.walleij@linaro.org>2017-12-02 22:42:33 +0100
commite2843cb6cd6ba433d18d87e3e922b6e49ecccf01 (patch)
tree19a4a01fe75ccad32edaeb4244f1c153c92c0cca /include/linux/pinctrl
parentdeb2e713ba54e87320cca4e3a62d3a88477b4ded (diff)
gpio: gpio-stmpe: make various char arrays static const, shrinks object size
Don't populate the read-only arrays edge_det_values, rise_values and fall_values on the stack but instead make them static and constify them. Makes the object code smaller by over 240 bytes: Before: text data bss dec hex filename 9525 2520 192 12237 2fcd drivers/gpio/gpio-stmpe.o After: text data bss dec hex filename 9025 2776 192 11993 2ed9 drivers/gpio/gpio-stmpe.o (gcc version 7.2.0 x86_64) Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
0 files changed, 0 insertions, 0 deletions