Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d08664fd authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ASoC: Fix build error in twl4030.c



Fix the (likely cut-n-paste) error by commit
16a30fbb, which causes the error below:
  sound/soc/codecs/twl4030.c: In function 'twl4030_read_reg_cache':
  sound/soc/codecs/twl4030.c:152: error: 'cache' undeclared (first use in this function)

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f692fce0
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -145,6 +145,7 @@ struct twl4030_priv {
static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec,
static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec,
	unsigned int reg)
	unsigned int reg)
{
{
	u8 *cache = codec->reg_cache;


	if (reg >= TWL4030_CACHEREGNUM)
	if (reg >= TWL4030_CACHEREGNUM)
		return -EIO;
		return -EIO;