提交 9919badf 编写于 作者: M Mark Brown

Merge remote-tracking branches 'asoc/topic/cs4265', 'asoc/topic/cs42l52',...

Merge remote-tracking branches 'asoc/topic/cs4265', 'asoc/topic/cs42l52', 'asoc/topic/cs42l56' and 'asoc/topic/da732x' into asoc-next
...@@ -77,6 +77,7 @@ static bool cs4265_readable_register(struct device *dev, unsigned int reg) ...@@ -77,6 +77,7 @@ static bool cs4265_readable_register(struct device *dev, unsigned int reg)
case CS4265_INT_MASK: case CS4265_INT_MASK:
case CS4265_STATUS_MODE_MSB: case CS4265_STATUS_MODE_MSB:
case CS4265_STATUS_MODE_LSB: case CS4265_STATUS_MODE_LSB:
case CS4265_CHIP_ID:
return true; return true;
default: default:
return false; return false;
......
...@@ -176,9 +176,9 @@ static bool cs42l52_volatile_register(struct device *dev, unsigned int reg) ...@@ -176,9 +176,9 @@ static bool cs42l52_volatile_register(struct device *dev, unsigned int reg)
case CS42L52_BATT_LEVEL: case CS42L52_BATT_LEVEL:
case CS42L52_SPK_STATUS: case CS42L52_SPK_STATUS:
case CS42L52_CHARGE_PUMP: case CS42L52_CHARGE_PUMP:
return 1; return true;
default: default:
return 0; return false;
} }
} }
......
...@@ -171,9 +171,9 @@ static bool cs42l56_volatile_register(struct device *dev, unsigned int reg) ...@@ -171,9 +171,9 @@ static bool cs42l56_volatile_register(struct device *dev, unsigned int reg)
{ {
switch (reg) { switch (reg) {
case CS42L56_INT_STATUS: case CS42L56_INT_STATUS:
return 1; return true;
default: default:
return 0; return false;
} }
} }
...@@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec) ...@@ -1175,11 +1175,8 @@ static int cs42l56_probe(struct snd_soc_codec *codec)
static int cs42l56_remove(struct snd_soc_codec *codec) static int cs42l56_remove(struct snd_soc_codec *codec)
{ {
struct cs42l56_private *cs42l56 = snd_soc_codec_get_drvdata(codec);
cs42l56_free_beep(codec); cs42l56_free_beep(codec);
cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF); cs42l56_set_bias_level(codec, SND_SOC_BIAS_OFF);
regulator_bulk_free(ARRAY_SIZE(cs42l56->supplies), cs42l56->supplies);
return 0; return 0;
} }
......
...@@ -217,7 +217,7 @@ static void da732x_set_charge_pump(struct snd_soc_codec *codec, int state) ...@@ -217,7 +217,7 @@ static void da732x_set_charge_pump(struct snd_soc_codec *codec, int state)
snd_soc_write(codec, DA732X_REG_CP_CTRL1, DA723X_CP_DIS); snd_soc_write(codec, DA732X_REG_CP_CTRL1, DA723X_CP_DIS);
break; break;
default: default:
pr_err(KERN_ERR "Wrong charge pump state\n"); pr_err("Wrong charge pump state\n");
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册