diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-10-06 17:42:56 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-10-09 19:21:50 +0300 |
commit | ac4062aa6c811db89ee3bbfd3101af931a50c1ba (patch) | |
tree | f6a9b8e80a382c249fda32377d4a769c7f28c086 /drivers/gpio/gpiolib-of.c | |
parent | a02712e1ebcdcbc71ec30f5ed241eae5696dda50 (diff) | |
download | linux-ac4062aa6c811db89ee3bbfd3101af931a50c1ba.tar.xz |
gpio: 104-idi-48e: make array register_offset static, makes object smaller
Don't populate the array register_offset on the stack but instead make it
static. Makes the object code smaller by 63 bytes. Also add the int type
specifier to clean up a checkpatch warning.
Before:
text data bss dec hex filename
9212 5712 1408 16332 3fcc drivers/gpio/gpio-104-idi-48.o
After:
text data bss dec hex filename
9085 5776 1408 16269 3f8d drivers/gpio/gpio-104-idi-48.o
(gcc version 9.2.1, amd64)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
0 files changed, 0 insertions, 0 deletions