aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8731.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8731.c')
-rw-r--r--sound/soc/codecs/wm8731.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 27fc942a5ced..6232afd907ef 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -591,30 +591,6 @@ static void wm8731_unregister(struct wm8731_priv *wm8731)
591} 591}
592 592
593#if defined(CONFIG_SPI_MASTER) 593#if defined(CONFIG_SPI_MASTER)
594static int wm8731_spi_write(struct spi_device *spi, const char *data, int len)
595{
596 struct spi_transfer t;
597 struct spi_message m;
598 u8 msg[2];
599
600 if (len <= 0)
601 return 0;
602
603 msg[0] = data[0];
604 msg[1] = data[1];
605
606 spi_message_init(&m);
607 memset(&t, 0, (sizeof t));
608
609 t.tx_buf = &msg[0];
610 t.len = len;
611
612 spi_message_add_tail(&t, &m);
613 spi_sync(spi, &m);
614
615 return len;
616}
617
618static int __devinit wm8731_spi_probe(struct spi_device *spi) 594static int __devinit wm8731_spi_probe(struct spi_device *spi)
619{ 595{
620 struct snd_soc_codec *codec; 596 struct snd_soc_codec *codec;
@@ -626,7 +602,6 @@ static int __devinit wm8731_spi_probe(struct spi_device *spi)
626 602
627 codec = &wm8731->codec; 603 codec = &wm8731->codec;
628 codec->control_data = spi; 604 codec->control_data = spi;
629 codec->hw_write = (hw_write_t)wm8731_spi_write;
630 codec->dev = &spi->dev; 605 codec->dev = &spi->dev;
631 606
632 dev_set_drvdata(&spi->dev, wm8731); 607 dev_set_drvdata(&spi->dev, wm8731);