OSDN Git Service

power: supply: cpcap-battery: make array cpcap_battery_irqs static, shrinks object...
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Nov 2018 23:03:42 +0000 (23:03 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 4 Dec 2018 23:24:36 +0000 (00:24 +0100)
commitbd82ef08382f8b4b8ff476ece065f14b1e8f47e5
tree7767abd9bbc32cea2f6ddfb263a88ac98d4a509b
parented54ffbe554f0902689fd6d1712bbacbacd11376
power: supply: cpcap-battery: make array cpcap_battery_irqs static, shrinks object size

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

Before:
   text    data     bss     dec     hex filename
  13673    2448       0   16121    3ef9 cpcap-battery.o

After:
   text    data     bss     dec     hex filename
  13510    2512       0   16022    3e96 cpcap-battery.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-battery.c