summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rt5682-i2c.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-06-16 08:21:37 +0300
committerMark Brown <broonie@kernel.org>2020-06-22 17:13:46 +0300
commit467a2553dd21c7f0468ed9e651fa4b07fd082b93 (patch)
tree83b3ec3aac2b82e1baca0de2d4b6f4c883259cb6 /sound/soc/codecs/rt5682-i2c.c
parent6d75dfc3e86500eda78fc2ddc6e2cdb52b9e2a1a (diff)
downloadlinux-467a2553dd21c7f0468ed9e651fa4b07fd082b93.tar.xz
ASoC: codecs: rt*: rename to snd_soc_component_read()
We need to use snd_soc_component_read() instead of snd_soc_component_read32() This patch renames _read32() to _read() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://lore.kernel.org/r/87d05z4mce.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-i2c.c')
-rw-r--r--sound/soc/codecs/rt5682-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index e28d08b1cd65..b24f93ff0e55 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -59,7 +59,7 @@ static void rt5682_jd_check_handler(struct work_struct *work)
struct rt5682_priv *rt5682 = container_of(work, struct rt5682_priv,
jd_check_work.work);
- if (snd_soc_component_read32(rt5682->component, RT5682_AJD1_CTRL)
+ if (snd_soc_component_read(rt5682->component, RT5682_AJD1_CTRL)
& RT5682_JDH_RS_MASK) {
/* jack out */
rt5682->jack_type = rt5682_headset_detect(rt5682->component, 0);