]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: sti-sas: Constify snd_soc_component_driver struct
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 1 Aug 2024 20:30:05 +0000 (22:30 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 2 Aug 2024 13:05:31 +0000 (14:05 +0100)
commit11c2d223713b7a7fee848595e9f582d34adc552b
treef0ead1c7e0ef3bf3563d823be138430e87e2af8c
parent92b796845a4a8789c2d9434c6a77baa88a99121e
ASoC: sti-sas: Constify snd_soc_component_driver struct

In order to constify `snd_soc_component_driver` struct, simplify the logic
and the `sti_sas_dev_data` struct.

Since commit 165a57a3df02 ("ASoC: sti-sas: clean legacy in sti-sas") only
only chip is supported and `sti_sas_driver` can be fully defined at
compilation time.

Before:
======
   text    data     bss     dec     hex filename
   8033    1547      16    9596    257c sound/soc/codecs/sti-sas.o

After:
=====
   text    data     bss     dec     hex filename
   8257    1163      16    9436    24dc sound/soc/codecs/sti-sas.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patch.msgid.link/2c08558813e3bbfae0a5302199cf6ca226e7cde1.1722544073.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sti-sas.c