From owner-p4-projects@FreeBSD.ORG Tue Sep 5 21:11:01 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 131C416A4F2; Tue, 5 Sep 2006 21:11:01 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E36DC16A4EE for ; Tue, 5 Sep 2006 21:11:00 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8586F43D70 for ; Tue, 5 Sep 2006 21:10:56 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k85LAuDi015103 for ; Tue, 5 Sep 2006 21:10:56 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k85LAuG9015100 for perforce@freebsd.org; Tue, 5 Sep 2006 21:10:56 GMT (envelope-from imp@freebsd.org) Date: Tue, 5 Sep 2006 21:10:56 GMT Message-Id: <200609052110.k85LAuG9015100@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 105698 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2006 21:11:01 -0000 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 */