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 <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-12-e553fe67ae82@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 936cc56 commit 48d5f18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)