linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ASoC: Constify snd_compress_ops
@ 2021-05-26 23:10 Rikard Falkeborn
  2021-05-26 23:10 ` [PATCH 1/5] ASoC: cs47125: Constify static struct snd_compress_ops Rikard Falkeborn
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Rikard Falkeborn @ 2021-05-26 23:10 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown
  Cc: Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel,
	Rikard Falkeborn

The only use of the static and global snd_compress_ops structs is to
assign their address to the compress_ops field in the
snd_soc_component_driver struct which is a pointer to const. Make them
const to allow the compiler to put them in read-only memory.

Rikard Falkeborn (5):
  ASoC: cs47125: Constify static struct snd_compress_ops
  ASoC: wm5102: Constify static struct snd_compress_ops
  ASoC: wm5110: Constify static struct snd_compress_ops
  ASoC: qcom: q6asm-dai: Constify static struct snd_compress_ops
  ASoC: SOF: Intel: Constify sof_probe_compressed_ops

 sound/soc/codecs/cs47l24.c       | 2 +-
 sound/soc/codecs/wm5102.c        | 2 +-
 sound/soc/codecs/wm5110.c        | 2 +-
 sound/soc/qcom/qdsp6/q6asm-dai.c | 2 +-
 sound/soc/sof/compress.c         | 2 +-
 sound/soc/sof/compress.h         | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-01 17:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 23:10 [PATCH 0/5] ASoC: Constify snd_compress_ops Rikard Falkeborn
2021-05-26 23:10 ` [PATCH 1/5] ASoC: cs47125: Constify static struct snd_compress_ops Rikard Falkeborn
2021-05-26 23:10 ` [PATCH 2/5] ASoC: wm5102: " Rikard Falkeborn
2021-05-26 23:10 ` [PATCH 3/5] ASoC: wm5110: " Rikard Falkeborn
2021-05-26 23:10 ` [PATCH 4/5] ASoC: qcom: q6asm-dai: " Rikard Falkeborn
2021-05-28  8:37   ` Srinivas Kandagatla
2021-05-26 23:10 ` [PATCH 5/5] ASoC: SOF: Intel: Constify sof_probe_compressed_ops Rikard Falkeborn
2021-06-01 17:38 ` [PATCH 0/5] ASoC: Constify snd_compress_ops Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).