Re: [PATCH v2 2/2] ASoC: Constify DAI ops auto_selectable_formats

From: Herve Codina
Date: Mon Jun 17 2024 - 09:07:16 EST


Hi Krzysztof,

On Mon, 17 Jun 2024 14:57:35 +0200
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> 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@xxxxxxxxxx>
>
> ---
>
> 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@xxxxxxxxxxx>

Best regards,
Hervé