ASoC: AIC23: Fixing writes to non-existing registers in resume function

Commit e9ff5eb2 (Fixing infinite loop in resume path) uses wrong AIC23
register in resume function because of which register writes happen
on some non-existing registers.

Signed-off-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by Anuj Aggarwal and committed by Mark Brown 3e59aaa7 40aa7030

+1 -1
+1 -1
sound/soc/codecs/tlv320aic23.c
··· 627 627 u16 reg; 628 628 629 629 /* Sync reg_cache with the hardware */ 630 - for (reg = 0; reg < TLV320AIC23_RESET; reg++) { 630 + for (reg = 0; reg <= TLV320AIC23_ACTIVE; reg++) { 631 631 u16 val = tlv320aic23_read_reg_cache(codec, reg); 632 632 tlv320aic23_write(codec, reg, val); 633 633 }