mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 09:01:34 +00:00
ASoC: SOF: intel: pci-tng: 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-5-e553fe67ae82@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8bbc692d1a
commit
8f2b0d55ab
@ -132,7 +132,7 @@ irq:
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct snd_sof_dsp_ops sof_tng_ops = {
|
||||
const struct snd_sof_dsp_ops sof_tng_ops = {
|
||||
/* device init */
|
||||
.probe = tangier_pci_probe,
|
||||
|
||||
|
@ -196,7 +196,7 @@ struct sof_intel_dsp_desc {
|
||||
int (*cl_init)(struct snd_sof_dev *sdev, int stream_tag, bool imr_boot);
|
||||
};
|
||||
|
||||
extern struct snd_sof_dsp_ops sof_tng_ops;
|
||||
extern const struct snd_sof_dsp_ops sof_tng_ops;
|
||||
|
||||
extern const struct sof_intel_dsp_desc tng_chip_info;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user