Skip to content

Commit

Permalink
ASoC: don't use codec hw_write on max98926
Browse files Browse the repository at this point in the history
max98926 driver is using codec hw_write/control_data,
but it is redundant code. This patch cleanup these

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Nov 27, 2017
1 parent 4fbd8d1 commit 866b9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/max98926.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ static int max98926_probe(struct snd_soc_codec *codec)
struct max98926_priv *max98926 = snd_soc_codec_get_drvdata(codec);

max98926->codec = codec;
codec->control_data = max98926->regmap;

/* Hi-Z all the slots */
regmap_write(max98926->regmap, MAX98926_DOUT_HIZ_CFG4, 0xF0);
return 0;
Expand Down

0 comments on commit 866b9c8

Please sign in to comment.