Date: Tue, 5 Sep 2006 21:10:56 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 105698 for review Message-ID: <200609052110.k85LAuG9015100@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105698 Change 105698 by imp@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609052110.k85LAuG9015100>