tpm_tis: make array cmd_getticks static const to shrink object code size
authorColin Ian King <colin.king@canonical.com>
Fri, 25 Aug 2017 16:45:05 +0000 (17:45 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 18 Oct 2017 15:28:23 +0000 (18:28 +0300)
commit0bbc931a074a741cf8e6279e8045cf7118586780
tree8eab51bbe6cd8561a1d558f8de38363a11c24196
parentda379f3c1db0c9a1fd27b11d24c9894b5edc7c75
tpm_tis: make array cmd_getticks static const to shrink object code size

Don't populate array cmd_getticks on the stack, instead make it static
const.  Makes the object code smaller by over 160 bytes:

Before:
   text    data     bss     dec     hex filename
  18813    3152     128   22093    564d drivers/char/tpm/tpm_tis_core.o

After:
   text    data     bss     dec     hex filename
  18554    3248     128   21930    55aa drivers/char/tpm/tpm_tis_core.o

Cc: stable@vger.kernel.org
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_tis_core.c