提交 ea2a2ad1 编写于 作者: J Jerome Brunet 提交者: Mark Brown

ASoC: dio2125: use gpiod_set_value_cansleep

Use the "cansleep" variant of gpiod_set_value so the driver can be used
with slow gpio controllers as well.

Fixes: 85825d5e ("ASoC: dio2125: add dio2125 amp driver")
Reported-by: NMark Brown <broonie@kernel.org>
Signed-off-by: NJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1e03580b
......@@ -46,7 +46,7 @@ static int drv_event(struct snd_soc_dapm_widget *w,
return -EINVAL;
}
gpiod_set_value(priv->gpiod_enable, val);
gpiod_set_value_cansleep(priv->gpiod_enable, val);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册