Loading sound/soc/codecs/ad1938.c +78 −78 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ struct ad1938_priv { struct snd_soc_codec codec; u8 reg_cache[AD1938_NUM_REGS]; }; static struct snd_soc_codec *ad1938_codec; Loading Loading @@ -337,7 +336,8 @@ static int ad1938_write_reg(struct snd_soc_codec *codec, unsigned int reg, buf[2] = value; spi_message_init(&m); spi_message_add_tail(&t, &m); if((ret = spi_sync(codec->control_data, &m)) == 0) ret = spi_sync(codec->control_data, &m); if (ret == 0) reg_cache[reg] = value; } Loading Loading
sound/soc/codecs/ad1938.c +78 −78 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ struct ad1938_priv { struct snd_soc_codec codec; u8 reg_cache[AD1938_NUM_REGS]; }; static struct snd_soc_codec *ad1938_codec; Loading Loading @@ -337,7 +336,8 @@ static int ad1938_write_reg(struct snd_soc_codec *codec, unsigned int reg, buf[2] = value; spi_message_init(&m); spi_message_add_tail(&t, &m); if((ret = spi_sync(codec->control_data, &m)) == 0) ret = spi_sync(codec->control_data, &m); if (ret == 0) reg_cache[reg] = value; } Loading