ASoC: Fix checkpatch issues in AD1938
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@@ -45,7 +45,6 @@
|
|||||||
struct ad1938_priv {
|
struct ad1938_priv {
|
||||||
struct snd_soc_codec codec;
|
struct snd_soc_codec codec;
|
||||||
u8 reg_cache[AD1938_NUM_REGS];
|
u8 reg_cache[AD1938_NUM_REGS];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct snd_soc_codec *ad1938_codec;
|
static struct snd_soc_codec *ad1938_codec;
|
||||||
@@ -337,7 +336,8 @@ static int ad1938_write_reg(struct snd_soc_codec *codec, unsigned int reg,
|
|||||||
buf[2] = value;
|
buf[2] = value;
|
||||||
spi_message_init(&m);
|
spi_message_init(&m);
|
||||||
spi_message_add_tail(&t, &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;
|
reg_cache[reg] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user