ASoC: dio2125: use gpiod_set_value_cansleep
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 7 Mar 2017 13:12:22 +0000 (14:12 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 13:56:06 +0000 (14:56 +0100)
Use the "cansleep" variant of gpiod_set_value so the driver can be used
with slow gpio controllers as well.

Fixes: 85825d5e8869 ("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>
sound/soc/codecs/dio2125.c

index 015e310556d33105ac05511e049baefcfdbf5313..09451cd44f9b980d6afb3dc14614f846c3d13b3e 100644 (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;
 }