Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 549e783f authored by qipeng.zha's avatar qipeng.zha Committed by Linus Walleij
Browse files

pinctrl: update direction_output function of cherryview driver



From the comments of gpiod_direction_output(), need to set @value
as initial output, so update the lowlevel routine to make it work.

Signed-off-by: default avatar <jason.cj.chen&lt;jason.cj.chen@intel.com>
Signed-off-by: default avatarqipeng.zha <qipeng.zha@intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent fcc18deb
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1226,6 +1226,7 @@ static int chv_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
				     int value)
				     int value)
{
{
	chv_gpio_set(chip, offset, value);
	return pinctrl_gpio_direction_output(chip->base + offset);
	return pinctrl_gpio_direction_output(chip->base + offset);
}
}