On 12/16/2014 04:40 PM, Axel Lin wrote:
dln2_gpio_direction_output() ignored the state passed into it. Fix it.

Signed-off-by: Axel Lin <[email protected]>

Tested-by: Daniel Baluta <[email protected]>

---
I don't have this hardware handy, so only compile test.
  drivers/gpio/gpio-dln2.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-dln2.c b/drivers/gpio/gpio-dln2.c
index 978b51e..1434844 100644
--- a/drivers/gpio/gpio-dln2.c
+++ b/drivers/gpio/gpio-dln2.c
@@ -267,6 +267,7 @@ static int dln2_gpio_direction_input(struct gpio_chip 
*chip, unsigned offset)
  static int dln2_gpio_direction_output(struct gpio_chip *chip, unsigned offset,
                                      int value)
  {
+       dln2_gpio_set(chip, offset, value);
        return dln2_gpio_set_direction(chip, offset, DLN2_GPIO_DIRECTION_OUT);
  }


--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to