mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ASoC: dio2125: use gpiod_set_value_cansleep
@ 2017-03-07 13:12 Jerome Brunet
  2017-03-07 14:21 ` Applied "ASoC: dio2125: use gpiod_set_value_cansleep" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Jerome Brunet @ 2017-03-07 13:12 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: Jerome Brunet, alsa-devel, linux-kernel, Kevin Hilman, Neil Armstrong

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>
---
 sound/soc/codecs/dio2125.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-07 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 13:12 [PATCH] ASoC: dio2125: use gpiod_set_value_cansleep Jerome Brunet
2017-03-07 14:21 ` Applied "ASoC: dio2125: use gpiod_set_value_cansleep" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®