char/mwave: make some arrays static const to make object code smaller
authorColin Ian King <colin.king@canonical.com>
Mon, 10 Jul 2017 15:08:32 +0000 (16:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 15:23:16 +0000 (17:23 +0200)
commitcaa97be1a2052f2dfc026c3fe5ef62f620782f24
treea8a42967d957c7ea6f05153ca9c691e1bdf75469
parent2dee584bc9e3c75afc2c85f107e516c58a8efaf3
char/mwave: make some arrays static const to make object code smaller

Don't populate arrays on the stack but make them static.  Makes
the object code smaller.  Also remove temporary variables that
have hard coded array sizes and just use ARRAY_SIZE instead and
wrap some lines that are wider than 80 chars to clean up some
checkpatch warnings.

Before:
   text    data     bss     dec     hex filename
  11141    2008      64   13213    339d drivers/char/mwave/smapi.o

After:
   text    data     bss     dec     hex filename
  10697    2352      64   13113    3339 drivers/char/mwave/smapi.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mwave/smapi.c