ASoC: max98927: fix boolean assignments
Reported by Coccinelle: sound/soc/codecs/max98927.c:508:2-20: WARNING: Assignment of bool to 0/1 sound/soc/codecs/max98927.c:889:3-28: WARNING: Assignment of bool to 0/1 sound/soc/codecs/max98927.c:891:3-28: WARNING: Assignment of bool to 0/1 sound/soc/codecs/max98927.c:893:2-27: WARNING: Assignment of bool to 0/1 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e0a99927ff
commit
091cd877d8
|
@ -505,7 +505,7 @@ static int max98927_dac_event(struct snd_soc_dapm_widget *w,
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case SND_SOC_DAPM_PRE_PMU:
|
case SND_SOC_DAPM_PRE_PMU:
|
||||||
max98927->tdm_mode = 0;
|
max98927->tdm_mode = false;
|
||||||
break;
|
break;
|
||||||
case SND_SOC_DAPM_POST_PMU:
|
case SND_SOC_DAPM_POST_PMU:
|
||||||
regmap_update_bits(max98927->regmap,
|
regmap_update_bits(max98927->regmap,
|
||||||
|
@ -886,11 +886,11 @@ static int max98927_i2c_probe(struct i2c_client *i2c,
|
||||||
if (!of_property_read_u32(i2c->dev.of_node,
|
if (!of_property_read_u32(i2c->dev.of_node,
|
||||||
"interleave_mode", &value)) {
|
"interleave_mode", &value)) {
|
||||||
if (value > 0)
|
if (value > 0)
|
||||||
max98927->interleave_mode = 1;
|
max98927->interleave_mode = true;
|
||||||
else
|
else
|
||||||
max98927->interleave_mode = 0;
|
max98927->interleave_mode = false;
|
||||||
} else
|
} else
|
||||||
max98927->interleave_mode = 0;
|
max98927->interleave_mode = false;
|
||||||
|
|
||||||
/* regmap initialization */
|
/* regmap initialization */
|
||||||
max98927->regmap
|
max98927->regmap
|
||||||
|
|
Loading…
Reference in New Issue