]> git.baikalelectronics.ru Git - kernel.git/commit
HID: logitech-dj: make const array template static
authorColin Ian King <colin.king@canonical.com>
Fri, 10 May 2019 13:10:39 +0000 (14:10 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 22 May 2019 11:18:28 +0000 (13:18 +0200)
commite3c03904356448ad7fe5551e3d409619d34b947a
tree27115af17254102d848ff77349df0361156e6fa0
parent65656c84efc0380fdc35e9f662bba46fd2df0338
HID: logitech-dj: make const array template static

Don't populate the array template  on the stack but instead make it
static. Makes the object code smaller by 10 bytes. Also reformat
the declaration.

Before:
   text    data     bss     dec     hex filename
  29376    9360     128   38864    97d0 drivers/hid/hid-logitech-dj.o

After:
   text    data     bss     dec     hex filename
  29270    9456     128   38854    97c6 drivers/hid/hid-logitech-dj.o

(gcc version 8.3.0, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c