Module Name:    src
Committed By:   jmcneill
Date:           Sat Sep  7 23:47:34 UTC 2013

Modified Files:
        src/sys/arch/arm/allwinner: awin_gpio.c

Log Message:
correct a typo in awin_gpio_pin_ctl that would have prevented configuring 
output pins


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/allwinner/awin_gpio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/allwinner/awin_gpio.c
diff -u src/sys/arch/arm/allwinner/awin_gpio.c:1.4 src/sys/arch/arm/allwinner/awin_gpio.c:1.5
--- src/sys/arch/arm/allwinner/awin_gpio.c:1.4	Sat Sep  7 19:47:28 2013
+++ src/sys/arch/arm/allwinner/awin_gpio.c	Sat Sep  7 23:47:33 2013
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.4 2013/09/07 19:47:28 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.5 2013/09/07 23:47:33 jmcneill Exp $");
 
 #include <sys/bus.h>
 #include <sys/device.h>
@@ -569,7 +569,7 @@ awin_gpio_pin_ctl(void *cookie, int pin,
 	if (flags & GPIO_PIN_INPUT) {
 		awin_gpio_set_pin_func(&ncfg, pin, AWIN_PIO_FUNC_INPUT);
 	} else if (flags & GPIO_PIN_OUTPUT) {
-		awin_gpio_set_pin_func(&ncfg, pin, AWIN_PIO_FUNC_INPUT);
+		awin_gpio_set_pin_func(&ncfg, pin, AWIN_PIO_FUNC_OUTPUT);
 	}
 
 	/*

Reply via email to