struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
struct cs35l41_private *cs35l41 = snd_soc_codec_get_drvdata(codec);
int ret = 0,status = -1;
+ int i;
switch (event) {
case SND_SOC_DAPM_POST_PMU:
regmap_multi_reg_write_bypassed(cs35l41->regmap,
cs35l41_pdn_patch,
ARRAY_SIZE(cs35l41_pdn_patch));
- for (int i = 0; i < 5; i++) {
+ for (i = 0; i < 5; i++) {
msleep(5);
regmap_read(cs35l41->regmap, CS35L41_IRQ1_STATUS1 , &status);
dev_err(cs35l41->dev, "%s cs35l41_main_amp_event status=%x\n",__func__,status);