summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/dio2125.c
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2017-03-07 14:12:22 +0100
committerMark Brown <broonie@kernel.org>2017-03-07 14:56:06 +0100
commitea2a2ad17ca1e9dbb01ac935f1b1b53f99f73b13 (patch)
tree7baac4e84f14b47f111b5ab7b1339170e946d421 /sound/soc/codecs/dio2125.c
parent1e03580b3a7213292fae9a6677edfaa83843fa4e (diff)
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: 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>
Diffstat (limited to 'sound/soc/codecs/dio2125.c')
-rw-r--r--sound/soc/codecs/dio2125.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/dio2125.c b/sound/soc/codecs/dio2125.c
index 015e310556d3..09451cd44f9b 100644
--- a/sound/soc/codecs/dio2125.c
+++ b/sound/soc/codecs/dio2125.c
@@ -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;
}