ASoC: Make pmdown_time a long
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Feb 2010 14:30:44 +0000 (14:30 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Feb 2010 14:37:20 +0000 (14:37 +0000)
Fixes a warning.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
include/sound/soc.h
sound/soc/soc-core.c

index d9d88dd9720da7c92de1b828a5c8ab784ae63c5d..5d234a8c2506c74df25d5fbc7f9220c0bdb106ad 100644 (file)
@@ -521,7 +521,7 @@ struct snd_soc_card {
        int (*set_bias_level)(struct snd_soc_card *,
                              enum snd_soc_bias_level level);
 
-       int pmdown_time;
+       long pmdown_time;
 
        /* CPU <--> Codec DAI links  */
        struct snd_soc_dai_link *dai_link;
index c2008bc9c64a1077290cf3c5db74c48a211cab07..e1c0336868e1af92b021f945b986a847a71b00e1 100644 (file)
@@ -136,7 +136,7 @@ static ssize_t pmdown_time_show(struct device *dev,
        struct snd_soc_device *socdev = dev_get_drvdata(dev);
        struct snd_soc_card *card = socdev->card;
 
-       return sprintf(buf, "%d\n", card->pmdown_time);
+       return sprintf(buf, "%ld\n", card->pmdown_time);
 }
 
 static ssize_t pmdown_time_set(struct device *dev,