mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
ASoC: don't use codec hw_write on max98926
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>
This commit is contained in:
parent
4fbd8d194f
commit
866b9c81ad
@ -490,7 +490,7 @@ static int max98926_probe(struct snd_soc_codec *codec)
|
|||||||
struct max98926_priv *max98926 = snd_soc_codec_get_drvdata(codec);
|
struct max98926_priv *max98926 = snd_soc_codec_get_drvdata(codec);
|
||||||
|
|
||||||
max98926->codec = codec;
|
max98926->codec = codec;
|
||||||
codec->control_data = max98926->regmap;
|
|
||||||
/* Hi-Z all the slots */
|
/* Hi-Z all the slots */
|
||||||
regmap_write(max98926->regmap, MAX98926_DOUT_HIZ_CFG4, 0xF0);
|
regmap_write(max98926->regmap, MAX98926_DOUT_HIZ_CFG4, 0xF0);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user