ASoC: Remove redundant codec pointer from DAIs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 May 2009 09:27:38 +0000 (10:27 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 May 2009 09:27:38 +0000 (10:27 +0100)
The DAI structure has two pointers to the codec, one in the body of the
DAI and one in a union for a parent pointer.  Drop the parent pointer
version.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dai.h

index a997c2cac63f601fe16a223da22228c9045e968d..496dc30457b75451a302ba7e349485d855b8b3e6 100644 (file)
@@ -205,11 +205,8 @@ struct snd_soc_dai {
        /* DAI private data */
        void *private_data;
 
-       /* parent codec/platform */
-       union {
-               struct snd_soc_codec *codec;
-               struct snd_soc_platform *platform;
-       };
+       /* parent platform */
+       struct snd_soc_platform *platform;
 
        struct list_head list;
 };