aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8988.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8988.c')
-rw-r--r--sound/soc/codecs/wm8988.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c
index 7486d3ec787e..1c8653523c8c 100644
--- a/sound/soc/codecs/wm8988.c
+++ b/sound/soc/codecs/wm8988.c
@@ -979,30 +979,6 @@ static struct i2c_driver wm8988_i2c_driver = {
979#endif 979#endif
980 980
981#if defined(CONFIG_SPI_MASTER) 981#if defined(CONFIG_SPI_MASTER)
982static int wm8988_spi_write(struct spi_device *spi, const char *data, int len)
983{
984 struct spi_transfer t;
985 struct spi_message m;
986 u8 msg[2];
987
988 if (len <= 0)
989 return 0;
990
991 msg[0] = data[0];
992 msg[1] = data[1];
993
994 spi_message_init(&m);
995 memset(&t, 0, (sizeof t));
996
997 t.tx_buf = &msg[0];
998 t.len = len;
999
1000 spi_message_add_tail(&t, &m);
1001 spi_sync(spi, &m);
1002
1003 return len;
1004}
1005
1006static int __devinit wm8988_spi_probe(struct spi_device *spi) 982static int __devinit wm8988_spi_probe(struct spi_device *spi)
1007{ 983{
1008 struct wm8988_priv *wm8988; 984 struct wm8988_priv *wm8988;
@@ -1013,7 +989,6 @@ static int __devinit wm8988_spi_probe(struct spi_device *spi)
1013 return -ENOMEM; 989 return -ENOMEM;
1014 990
1015 codec = &wm8988->codec; 991 codec = &wm8988->codec;
1016 codec->hw_write = (hw_write_t)wm8988_spi_write;
1017 codec->control_data = spi; 992 codec->control_data = spi;
1018 codec->dev = &spi->dev; 993 codec->dev = &spi->dev;
1019 994