summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorPhil Reid2016-09-29 04:41:02 +0200
committerMark Brown2016-09-29 20:01:36 +0200
commit76cce7e3a582e3a86becaa086f24277829e1e0f5 (patch)
tree2fc6592708ad99cb19d18497c68a7cfca0d1bad9 /drivers/spi
parentspi: sc18is602: Add reset control via gpio pin. (diff)
downloadkernel-qcow2-linux-76cce7e3a582e3a86becaa086f24277829e1e0f5.tar.gz
kernel-qcow2-linux-76cce7e3a582e3a86becaa086f24277829e1e0f5.tar.xz
kernel-qcow2-linux-76cce7e3a582e3a86becaa086f24277829e1e0f5.zip
spi: sc18is602: Change gpiod_set_value to gpiod_set_value_cansleep
To avoid warning when using i2c gpio expander change call to the cansleep variant. There should be no issue with sleeping in the drivers probe function. Signed-off-by: Phil Reid <preid@electromag.com.au> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-sc18is602.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-sc18is602.c b/drivers/spi/spi-sc18is602.c
index 5666b5d20b87..f63714ffb62f 100644
--- a/drivers/spi/spi-sc18is602.c
+++ b/drivers/spi/spi-sc18is602.c
@@ -264,7 +264,7 @@ static int sc18is602_probe(struct i2c_client *client,
hw->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH);
if (IS_ERR(hw->reset))
return PTR_ERR(hw->reset);
- gpiod_set_value(hw->reset, 0);
+ gpiod_set_value_cansleep(hw->reset, 0);
hw->master = master;
hw->client = client;