mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-22 00:59:26 +00:00
Apart from a dai_link_list variable, the mtk_sof_priv currently holds data that never gets modified during runtime. Constify the mtk_sof_priv structure and move the SOF dai_link_list as sof_dai_link_list in struct mtk_soc_card_data, which is a structure that already holds the card's machine specific, runtime modified data. This allows to safely pass the mtk_sof_priv structure as platform data for the commonized card probe mechanism. Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20240416071410.75620-3-angelogioacchino.delregno@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
23 lines
467 B
C
23 lines
467 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* mtk-soc-card.h -- MediaTek soc card data definition
|
|
*
|
|
* Copyright (c) 2022 MediaTek Inc.
|
|
* Author: Chunxu Li <chunxu.li@mediatek.com>
|
|
*/
|
|
|
|
#ifndef _MTK_SOC_CARD_H_
|
|
#define _MTK_SOC_CARD_H_
|
|
|
|
struct mtk_platform_card_data;
|
|
struct mtk_sof_priv;
|
|
|
|
struct mtk_soc_card_data {
|
|
const struct mtk_sof_priv *sof_priv;
|
|
struct list_head sof_dai_link_list;
|
|
struct mtk_platform_card_data *card_data;
|
|
void *mach_priv;
|
|
};
|
|
|
|
#endif
|