PERFORCE change 105698 for review

Warner Losh imp at FreeBSD.org
Tue Sep 5 21:11:01 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=105698

Change 105698 by imp at imp_lighthouse on 2006/09/05 21:10:13

	Fix silly typos

Affected files ...

.. //depot/projects/arm/src/sys/arm/at91/at91_pio.c#18 edit

Differences ...

==== //depot/projects/arm/src/sys/arm/at91/at91_pio.c#18 (text+ko) ====

@@ -288,17 +288,18 @@
 		*(uint32_t *)data = RD4(sc, PIO_PDSR);
 		return (0);
 	case GPIO_CFG:	/* Configure GPIO pins */
-		if (sc->cfgmask & GPIO_CFG_INPUT) {
-			WR4(sc, PIO_OER, sc->iomask & ~sc->input);
-			WR4(sc, PIO_ODR, sc->iomask & sc->input);
+		cfg = (struct gpio_cfg *)data;
+		if (cfg->cfgmask & GPIO_CFG_INPUT) {
+			WR4(sc, PIO_OER, cfg->iomask & ~cfg->input);
+			WR4(sc, PIO_ODR, cfg->iomask & cfg->input);
 		}
-		if (sc->cfgmask & GPIO_CFG_HI_Z) {
-			WR4(sc, PIO_MDER, sc->iomask & ~sc->hi_z);
-			WR4(sc, PIO_MDDR, sc->iomask & sc->hi_z);
+		if (cfg->cfgmask & GPIO_CFG_HI_Z) {
+			WR4(sc, PIO_MDER, cfg->iomask & ~cfg->hi_z);
+			WR4(sc, PIO_MDDR, cfg->iomask & cfg->hi_z);
 		}
-		if (ac->cfgmask & GPIO_CFG_PULLUP) {
-			WR4(sc, PIO_PUER, sc->iomask & ~sc->pullup);
-			WR4(sc, PIO_PUDR, sc->iomask & sc->pullup);
+		if (cfg->cfgmask & GPIO_CFG_PULLUP) {
+			WR4(sc, PIO_PUER, cfg->iomask & ~cfg->pullup);
+			WR4(sc, PIO_PUDR, cfg->iomask & cfg->pullup);
 		}
 		return (0);
 	case GPIO_INFO:	/* Learn about this device's GPIO bits */


More information about the p4-projects mailing list