提交 ce02d18f 编写于 作者: A Axel Lin 提交者: Linus Walleij

gpio: tpic2810: Make tpic2810_direction_output set proper output level

The .direction_output callback should set proper output level.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 143b65d6
......@@ -33,6 +33,8 @@ struct tpic2810 {
struct mutex lock;
};
static void tpic2810_set(struct gpio_chip *chip, unsigned offset, int value);
static int tpic2810_get_direction(struct gpio_chip *chip,
unsigned offset)
{
......@@ -51,6 +53,7 @@ static int tpic2810_direction_output(struct gpio_chip *chip,
unsigned offset, int value)
{
/* This device always output */
tpic2810_set(chip, offset, value);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册