linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFT] gpio: dln2: Fix gpio output value in dln2_gpio_direction_output()
@ 2014-12-16 14:40 Axel Lin
  2014-12-16 16:52 ` Daniel Baluta
  0 siblings, 1 reply; 8+ messages in thread
From: Axel Lin @ 2014-12-16 14:40 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot
  Cc: Daniel Baluta, linux-gpio@vger.kernel.org

dln2_gpio_direction_output() ignored the state passed into it. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
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);
 }
 
-- 
1.9.1




^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-12-17  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-16 14:40 [PATCH RFT] gpio: dln2: Fix gpio output value in dln2_gpio_direction_output() Axel Lin
2014-12-16 16:52 ` Daniel Baluta
2014-12-17  8:50   ` Alexandre Courbot
2014-12-17  8:57     ` Octavian Purdila
2014-12-17  8:59       ` Alexandre Courbot
2014-12-17  9:10         ` Octavian Purdila
2014-12-17  9:13           ` Alexandre Courbot
2014-12-17  9:32   ` Octavian Purdila

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).