OSDN Git Service

ASoC: fsl-ssi: Fix stats compile warning
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 9 Jan 2014 10:16:11 +0000 (11:16 +0100)
committerMark Brown <broonie@linaro.org>
Thu, 9 Jan 2014 13:54:59 +0000 (13:54 +0000)
single_open requires a function with signature
'int (*)(struct seq_file *, void *)'. This patch fixes the warning by
fixing the wrong return type of fsl_ssi_stats_show.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/fsl/fsl_ssi.c

index 94dedcb..f662ddd 100644 (file)
@@ -391,7 +391,7 @@ static irqreturn_t fsl_ssi_isr(int irq, void *dev_id)
  * Display the statistics for the current SSI device.  To avoid confusion,
  * we only show those counts that are enabled.
  */
-static ssize_t fsl_ssi_stats_show(struct seq_file *s, void *unused)
+static int fsl_ssi_stats_show(struct seq_file *s, void *unused)
 {
        struct fsl_ssi_private *ssi_private = s->private;