Skip to content

Commit

Permalink
ASoC: Make pmdown_time a long
Browse files Browse the repository at this point in the history
Fixes a warning.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Mark Brown committed Feb 17, 2010
1 parent e47c796 commit 6c5f1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c5f1fe

Please sign in to comment.