mirror of https://github.com/thesofproject/sof.git
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:
parent
2633535cb2
commit
81bcc8999f
|
@ -21,5 +21,7 @@ enum {
|
|||
MEM_DIR_PLAYBACK,
|
||||
};
|
||||
|
||||
extern const struct dma_ops memif_ops;
|
||||
|
||||
#endif /* __SOF_DRIVERS_AFE_MEMIF_H__ */
|
||||
|
||||
|
|
|
@ -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] = {
|
||||
{
|
||||
|
|
|
@ -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] = {
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue