]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: cs43130: Constify struct reg_sequence and reg_sequences
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 6 Aug 2024 13:43:00 +0000 (15:43 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Aug 2024 11:41:39 +0000 (12:41 +0100)
commit86297bb30ae094e14a3a6c62b870a2f301a180a2
tree0931757116857eaca3e62504271417ecae7d0a16
parent5db564d4242e12c1de9ef294d7252dbb90898922
ASoC: cs43130: Constify struct reg_sequence and reg_sequences

'struct reg_sequence' and 'struct reg_sequences' are not modified in this
drivers.

Constifying these structures moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
   text    data     bss     dec     hex filename
  54409    7881      64   62354    f392 sound/soc/codecs/cs43130.o

After:
=====
   text    data     bss     dec     hex filename
  55562    6729      64   62355    f393 sound/soc/codecs/cs43130.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/5b906a0cc9b7be15d0d6310069f54254a75ea767.1722951770.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs43130.c