projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab85c44
)
ASoC: SOF: imx8m: Constify snd_sof_dsp_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Fri, 26 Apr 2024 09:03:56 +0000
(11:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 29 Apr 2024 15:16:54 +0000
(
00:16
+0900)
'struct snd_sof_dsp_ops' is not modified by core code, so it can be made
const for increased code safety.
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link:
https://lore.kernel.org/r/20240426-n-const-ops-var-v2-9-e553fe67ae82@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8m.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/imx/imx8m.c
b/sound/soc/sof/imx/imx8m.c
index 3e0b88002b4f631f33fd7aa27424a81f0489c5d8..4ed415f0434544c3d01a8119b1c0c020a06dbca8 100644
(file)
--- a/
sound/soc/sof/imx/imx8m.c
+++ b/
sound/soc/sof/imx/imx8m.c
@@
-411,7
+411,7
@@
static int imx8m_dsp_suspend(struct snd_sof_dev *sdev, unsigned int target_state
}
/* i.MX8 ops */
-static struct snd_sof_dsp_ops sof_imx8m_ops = {
+static
const
struct snd_sof_dsp_ops sof_imx8m_ops = {
/* probe and remove */
.probe = imx8m_probe,
.remove = imx8m_remove,