Message ID | 20240617125735.582963-1-krzysztof.kozlowski@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | [v2,1/2] ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats | expand |
Hi Krzysztof, On Mon, 17 Jun 2024 14:57:35 +0200 Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > The static arrays passed as 'auto_selectable_formats' are not modified > by the drivers nor by the core code, so make it const for code safety. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > > --- > > Changes in v2: > 1. Add missing change to sound/soc/codecs/framer-codec.c (Herve) > --- > sound/soc/codecs/ak4613.c | 2 +- > sound/soc/codecs/da7213.c | 2 +- > sound/soc/codecs/framer-codec.c | 2 +- > sound/soc/codecs/hdmi-codec.c | 2 +- > sound/soc/codecs/idt821034.c | 2 +- > sound/soc/codecs/pcm3168a.c | 2 +- > sound/soc/codecs/peb2466.c | 2 +- > sound/soc/generic/test-component.c | 2 +- > sound/soc/sh/fsi.c | 2 +- > sound/soc/sh/rcar/core.c | 2 +- > sound/soc/soc-utils.c | 2 +- > 11 files changed, 11 insertions(+), 11 deletions(-) > At least for framer-codec, idt821034 and peb2466: Acked-by: Herve Codina <herve.codina@bootlin.com> Best regards, Hervé
On Mon, 17 Jun 2024 14:57:34 +0200, Krzysztof Kozlowski wrote: > The core ASoC code does not modify contents of the > 'auto_selectable_formats' array passed in 'struct snd_soc_dai_ops', so > make it const for code safety. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats commit: d4a7d067e061c95c6387cf537258082074a4d299 [2/2] ASoC: Constify DAI ops auto_selectable_formats commit: 595265c92668cbdbd9f299c49907734d468c12e9 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 15ef268c9845..279223c4ef5e 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -361,7 +361,7 @@ struct snd_soc_dai_ops { * see * snd_soc_dai_get_fmt() */ - u64 *auto_selectable_formats; + const u64 *auto_selectable_formats; int num_auto_selectable_formats; /* probe ordering - for components with runtime dependencies */