]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: anatop: Constify anatop_core_rops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 17 Jun 2020 22:32:43 +0000 (00:32 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 18 Jun 2020 12:47:31 +0000 (13:47 +0100)
commitb0fc695fc606693cc27f6d4f9c8bcbf39bfc7a69
treee4b55ef6f47729ea12b4933a98183d1579a70cdb
parent933c188b284b2fe1238a75fa1ed00dfd58e49ae1
regulator: anatop: Constify anatop_core_rops

anatop_core_rops is not modified and can therefore be made const which
allows the compiler to put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   4502     412       0    4914    1332 drivers/regulator/anatop-regulator.o

After:
   text    data     bss     dec     hex filename
   4634     280       0    4914    1332 drivers/regulator/anatop-regulator.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200617223247.25566-2-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/anatop-regulator.c