platform: mtk: move extern declaration to common header

There is a checkpatch warning shown as below.
"WARNING: externs should be avoided in .c files"

Move extern declaration to afe-memif.h, so that the warning won't be
seen in the follow-up project.

Signed-off-by: Trevor Wu <trevor.wu@mediatek.com>
This commit is contained in:
Trevor Wu 2023-01-19 10:20:17 +08:00 committed by Liam Girdwood
parent 2633535cb2
commit 81bcc8999f
3 changed files with 4 additions and 2 deletions

View File

@ -21,5 +21,7 @@ enum {
MEM_DIR_PLAYBACK,
};
extern const struct dma_ops memif_ops;
#endif /* __SOF_DRIVERS_AFE_MEMIF_H__ */

View File

@ -7,6 +7,7 @@
*/
#include <sof/common.h>
#include <sof/drivers/afe-memif.h>
#include <rtos/interrupt.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
@ -17,7 +18,6 @@
#include <mt8186-afe-common.h>
extern const struct dma_ops dummy_dma_ops;
extern const struct dma_ops memif_ops;
static SHARED_DATA struct dma dma[PLATFORM_NUM_DMACS] = {
{

View File

@ -6,6 +6,7 @@
*/
#include <sof/common.h>
#include <sof/drivers/afe-memif.h>
#include <rtos/interrupt.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
@ -16,7 +17,6 @@
#include <mt8195-afe-common.h>
extern struct dma_ops dummy_dma_ops;
extern struct dma_ops memif_ops;
static SHARED_DATA struct dma dma[PLATFORM_NUM_DMACS] = {
{