]> git.baikalelectronics.ru Git - kernel.git/commit
usb: mtu3: constify struct debugfs_reg32
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 May 2020 21:44:21 +0000 (23:44 +0200)
committerFelipe Balbi <balbi@kernel.org>
Thu, 14 May 2020 09:42:53 +0000 (12:42 +0300)
commite42e8c0c84f27df602693960e8c3bc06bd327cb7
tree3974b3fff3ec033d71f8b7e50363c2703f8dd38f
parente878c842ad3adfab0e67c550f8bbc16a2a22d048
usb: mtu3: constify struct debugfs_reg32

mtu3_prb_regs is never changed and can therefore be made const.

This allows the compiler to put it in the text section instead of the
data section.

Before:
   text    data     bss     dec     hex filename
  19966    7120       0   27086    69ce drivers/usb/mtu3/mtu3_debugfs.o

After:
   text    data     bss     dec     hex filename
  20142    6992       0   27134    69fe drivers/usb/mtu3/mtu3_debugfs.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/mtu3/mtu3_debugfs.c