mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-29 06:58:07 +00:00
The functions related to SOF can be reused in different machine drivers, such as mt8195 or mt8186, so extract the common code to avoid duplication. Set mtk_soc_card_data which include machine private data and SOF private data as card drvdata, then the difference between machine private can be ignored such as mt8195_mt6359_priv or mt8186_mt6366_priv, at the same time the SOF related code can be reused in different machine drivers. Signed-off-by: Chunxu Li <chunxu.li@mediatek.com> Link: https://lore.kernel.org/r/20220715085903.7796-1-chunxu.li@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
18 lines
313 B
C
18 lines
313 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_soc_card_data {
|
|
void *mach_priv;
|
|
void *sof_priv;
|
|
};
|
|
|
|
#endif
|