]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ASoC: Remove unnecessary casts of private_data
authorJoe Perches <joe@perches.com>
Mon, 12 Jul 2010 20:50:26 +0000 (13:50 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 13 Jul 2010 11:33:59 +0000 (12:33 +0100)
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/blackfin/bf5xx-ac97.c
sound/soc/blackfin/bf5xx-tdm.c

index 523b7fc33f4e7f94b5d1f6f6ffd89f9e904479c5..c0eba51099804fcebc40ee13d5b495b3106448f2 100644 (file)
@@ -255,8 +255,7 @@ EXPORT_SYMBOL_GPL(soc_ac97_ops);
 #ifdef CONFIG_PM
 static int bf5xx_ac97_suspend(struct snd_soc_dai *dai)
 {
-       struct sport_device *sport =
-               (struct sport_device *)dai->private_data;
+       struct sport_device *sport = dai->private_data;
 
        pr_debug("%s : sport %d\n", __func__, dai->id);
        if (!dai->active)
@@ -271,8 +270,7 @@ static int bf5xx_ac97_suspend(struct snd_soc_dai *dai)
 static int bf5xx_ac97_resume(struct snd_soc_dai *dai)
 {
        int ret;
-       struct sport_device *sport =
-               (struct sport_device *)dai->private_data;
+       struct sport_device *sport = dai->private_data;
 
        pr_debug("%s : sport %d\n", __func__, dai->id);
        if (!dai->active)
index 4b360124083e7962482e045a57963776ca3c7d22..24c14269f4bc498601fb920e130b1ff44c5d4028 100644 (file)
@@ -210,8 +210,7 @@ static int bf5xx_tdm_set_channel_map(struct snd_soc_dai *dai,
 #ifdef CONFIG_PM
 static int bf5xx_tdm_suspend(struct snd_soc_dai *dai)
 {
-       struct sport_device *sport =
-               (struct sport_device *)dai->private_data;
+       struct sport_device *sport = dai->private_data;
 
        if (!dai->active)
                return 0;
@@ -225,8 +224,7 @@ static int bf5xx_tdm_suspend(struct snd_soc_dai *dai)
 static int bf5xx_tdm_resume(struct snd_soc_dai *dai)
 {
        int ret;
-       struct sport_device *sport =
-               (struct sport_device *)dai->private_data;
+       struct sport_device *sport = dai->private_data;
 
        if (!dai->active)
                return 0;