提交 76cce7e3 编写于 作者: P Phil Reid 提交者: Mark Brown

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: NPhil Reid <preid@electromag.com.au>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f9900801
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册