projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
232e0da
)
ASoC: SOF: intel: bdw: Constify snd_sof_dsp_ops
author
Krzysztof Kozlowski
<krzk@kernel.org>
Fri, 26 Apr 2024 09:03:58 +0000
(11:03 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 29 Apr 2024 15:16:55 +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-11-e553fe67ae82@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/bdw.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/intel/bdw.c
b/sound/soc/sof/intel/bdw.c
index e30ca086f3f8d5e49d1c4e1a53deed2ff8d288be..2e8926cd00f66c7620980d1d8a7d7b6270a63841 100644
(file)
--- a/
sound/soc/sof/intel/bdw.c
+++ b/
sound/soc/sof/intel/bdw.c
@@
-567,7
+567,7
@@
static struct snd_soc_dai_driver bdw_dai[] = {
};
/* broadwell ops */
-static struct snd_sof_dsp_ops sof_bdw_ops = {
+static
const
struct snd_sof_dsp_ops sof_bdw_ops = {
/*Device init */
.probe = bdw_probe,