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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 975befdfd885..7b64d9a7ff76 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -688,12 +688,13 @@ static int wm8731_spi_write(struct spi_device *spi, const char *data, int len)
688{ 688{
689 struct spi_transfer t; 689 struct spi_transfer t;
690 struct spi_message m; 690 struct spi_message m;
691 u16 msg[2]; 691 u8 msg[2];
692 692
693 if (len <= 0) 693 if (len <= 0)
694 return 0; 694 return 0;
695 695
696 msg[0] = (data[0] << 8) + data[1]; 696 msg[0] = data[0];
697 msg[1] = data[1];
697 698
698 spi_message_init(&m); 699 spi_message_init(&m);
699 memset(&t, 0, (sizeof t)); 700 memset(&t, 0, (sizeof t));