hwmon: abituguru: make array probe_order static, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sun, 6 Oct 2019 14:52:31 +0000 (15:52 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 6 Nov 2019 22:37:19 +0000 (14:37 -0800)
commit16f7f3bccb304a3257052bcb1538e85c67b506e4
treeffb333387b55b19c809a5d867878dd62f0379d2a
parent58d5aa5c75ce5748a489c3b8916de9b448d954b7
hwmon: abituguru: make array probe_order static, makes object smaller

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

Before:
   text    data     bss     dec     hex filename
  41473   13448     320   55241    d7c9 drivers/hwmon/abituguru.o

After:
   text    data     bss     dec     hex filename
  41315   13512     320   55147    d76b drivers/hwmon/abituguru.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20191006145231.24022-1-colin.king@canonical.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/abituguru.c