Skip to content

Commit 48d5f18

Browse files
krzkbroonie
authored andcommitted
ASoC: SOF: intel: byt: Constify snd_sof_dsp_ops
'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 <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 936cc56 commit 48d5f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/sof/intel/byt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static int byt_acpi_probe(struct snd_sof_dev *sdev)
214214
}
215215

216216
/* baytrail ops */
217-
static struct snd_sof_dsp_ops sof_byt_ops = {
217+
static const struct snd_sof_dsp_ops sof_byt_ops = {
218218
/* device init */
219219
.probe = byt_acpi_probe,
220220
.remove = byt_remove,
@@ -289,7 +289,7 @@ static const struct sof_intel_dsp_desc byt_chip_info = {
289289
};
290290

291291
/* cherrytrail and braswell ops */
292-
static struct snd_sof_dsp_ops sof_cht_ops = {
292+
static const struct snd_sof_dsp_ops sof_cht_ops = {
293293
/* device init */
294294
.probe = byt_acpi_probe,
295295
.remove = byt_remove,

0 commit comments

Comments
 (0)