• Mark Brown's avatar
    ASoC: Constify local snd_sof_dsp_ops · 228132b4
    Mark Brown authored
    Merge series from Krzysztof Kozlowski <krzk@kernel.org>:
    
    The core code does not modify the 'struct snd_sof_dsp_ops' passed via
    pointer in various places, so this can be made pointer to const in few
    places.  This in turn allows few drivers to have the local (usually
    static) 'struct snd_sof_dsp_ops' as const which increased code safety,
    as it is now part of rodata.
    
    Not all drivers can be made safer that way. Intel and AMD rely on
    customizing that 'struct snd_sof_dsp_ops' before passing to SOF, so they
    won't benefit.  They don't lose anything., either.
    228132b4
debug.c 12.8 KB