]> git.baikalelectronics.ru Git - kernel.git/commit
clk: bcm2835: Constify struct debugfs_reg32
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 May 2020 22:02:38 +0000 (00:02 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 07:08:31 +0000 (00:08 -0700)
commit7316059cb556588493829021d5832bf8017a9b3d
treee1d3c9e87cb5a1d9cecbc0b62f19095a50b4503f
parentf999cc3d2f8510a226d280449e2d9bed45922d12
clk: bcm2835: Constify struct debugfs_reg32

bcm2835_debugfs_clock_reg32 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
  26598   16088      64   42750    a6fe drivers/clk/bcm/clk-bcm2835.o

After:
   text    data     bss     dec     hex filename
  26662   16024      64   42750    a6fe drivers/clk/bcm/clk-bcm2835.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lkml.kernel.org/r/20200508220238.4883-1-rikard.falkeborn@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-bcm2835.c