diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-11-09 01:04:54 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-11-27 18:48:11 +0000 |
commit | 866b9c81ad8450eb1e2a0132b4bd9fd909afd647 (patch) | |
tree | 3722ce00553552e5818d9061a3b304ca28470532 /sound/soc/codecs/max98926.c | |
parent | 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff) | |
download | linux-866b9c81ad8450eb1e2a0132b4bd9fd909afd647.tar.bz2 |
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>
Diffstat (limited to 'sound/soc/codecs/max98926.c')
-rw-r--r-- | sound/soc/codecs/max98926.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c index 03d07bf4d942..7b1d1b0fa879 100644 --- a/sound/soc/codecs/max98926.c +++ b/sound/soc/codecs/max98926.c @@ -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; |