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: 85825d5e88 ("ASoC: dio2125: add dio2125 amp driver")
Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Jerome Brunet 2017-03-07 14:12:22 +01:00 committed by Mark Brown
parent 1e03580b3a
commit ea2a2ad17c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}