Re: [PATCH 1/4] ASoC: Constify channel mapping array arguments in set_channel_map()

From: Charles Keepax
Date: Tue May 07 2024 - 08:26:10 EST


On Tue, May 07, 2024 at 12:27:30PM +0200, Krzysztof Kozlowski wrote:
> There is no need for implementations of DAI set_channel_map() to modify
> contents of passed arrays with actual channel mapping. Additionally,
> the caller keeps full ownership of the array.
>
> Constify these pointer arguments so the code will be safer and easier to
> read (documenting the caller's ownership).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
> ---
> include/sound/cs35l41.h | 4 ++--
> include/sound/soc-dai.h | 8 ++++----
> sound/soc/codecs/adau7118.c | 6 ++++--
> sound/soc/codecs/cs35l41-lib.c | 4 ++--
> sound/soc/codecs/cs35l41.c | 3 ++-

For the cs35l41 bits:

Acked-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles