]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: davinci-mcasp: Move private struct definition to source file
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 14 Nov 2013 09:35:26 +0000 (11:35 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 10 Dec 2013 11:22:15 +0000 (11:22 +0000)
Since it is a private struct strictly used by the davinci-mcasp driver it
can be moved from header file to the source file.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/davinci/davinci-mcasp.c
sound/soc/davinci/davinci-mcasp.h

index 1c1585e18eae008d7e3b1066d327e4d456579a2e..70107956dd0c86f903249fcab638ce90d15fb051 100644 (file)
 
 #define DAVINCI_MCASP_NUM_SERIALIZER   16
 
+struct davinci_audio_dev {
+       struct davinci_pcm_dma_params dma_params[2];
+       void __iomem *base;
+       struct device *dev;
+
+       /* McASP specific data */
+       int     tdm_slots;
+       u8      op_mode;
+       u8      num_serializer;
+       u8      *serial_dir;
+       u8      version;
+       u16     bclk_lrclk_ratio;
+
+       /* McASP FIFO related */
+       u8      txnumevt;
+       u8      rxnumevt;
+
+#ifdef CONFIG_PM_SLEEP
+       struct {
+               u32     txfmtctl;
+               u32     rxfmtctl;
+               u32     txfmt;
+               u32     rxfmt;
+               u32     aclkxctl;
+               u32     aclkrctl;
+               u32     pdir;
+       } context;
+#endif
+};
+
 static inline void mcasp_set_bits(void __iomem *reg, u32 val)
 {
        __raw_writel(__raw_readl(reg) | val, reg);
index 619b98befc847fa947a6bcbec002f12c066909ac..80e5a184668781ff7195f4f9d70f43816c726506 100644 (file)
 #ifndef DAVINCI_MCASP_H
 #define DAVINCI_MCASP_H
 
-#include <linux/io.h>
-#include <linux/platform_data/davinci_asp.h>
-
-#include "davinci-pcm.h"
-
 /*
  * McASP register definitions
  */
 #define NUMEVT_MASK    (0xFF << 8)
 #define NUMDMA_MASK    (0xFF)
 
-struct davinci_audio_dev {
-       struct davinci_pcm_dma_params dma_params[2];
-       void __iomem *base;
-       struct device *dev;
-
-       /* McASP specific data */
-       int     tdm_slots;
-       u8      op_mode;
-       u8      num_serializer;
-       u8      *serial_dir;
-       u8      version;
-       u16     bclk_lrclk_ratio;
-
-       /* McASP FIFO related */
-       u8      txnumevt;
-       u8      rxnumevt;
-
-#ifdef CONFIG_PM_SLEEP
-       struct {
-               u32     txfmtctl;
-               u32     rxfmtctl;
-               u32     txfmt;
-               u32     rxfmt;
-               u32     aclkxctl;
-               u32     aclkrctl;
-               u32     pdir;
-       } context;
-#endif
-};
-
 #endif /* DAVINCI_MCASP_H */