From owner-p4-projects@FreeBSD.ORG Wed Jul 4 03:28:07 2007 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 DBE3F16A473; Wed, 4 Jul 2007 03:28:06 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ADD0116A46D for ; Wed, 4 Jul 2007 03:28:06 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9E43C13C455 for ; Wed, 4 Jul 2007 03:28:06 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l643S6Od072328 for ; Wed, 4 Jul 2007 03:28:06 GMT (envelope-from rpaulo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l643S6wp072325 for perforce@freebsd.org; Wed, 4 Jul 2007 03:28:06 GMT (envelope-from rpaulo@FreeBSD.org) Date: Wed, 4 Jul 2007 03:28:06 GMT Message-Id: <200707040328.l643S6wp072325@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rpaulo@FreeBSD.org using -f From: Rui Paulo To: Perforce Change Reviews Cc: Subject: PERFORCE change 122826 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: Wed, 04 Jul 2007 03:28:07 -0000 http://perforce.freebsd.org/chv.cgi?CH=122826 Change 122826 by rpaulo@rpaulo_epsilon on 2007/07/04 03:27:20 Style fixes. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 edit .. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#5 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 $ * */ @@ -49,15 +49,15 @@ #include -static struct backlight_model *backlight_match(device_t); +static struct backlight_model *backlight_match(device_t dev); /* * Device interface. */ -static void backlight_identify(driver_t *, device_t); -static int backlight_probe(device_t); -static int backlight_attach(device_t); -static int backlight_detach(device_t); +static void backlight_identify(driver_t *driver, device_t dev); +static int backlight_probe(device_t dev); +static int backlight_attach(device_t dev); +static int backlight_detach(device_t dev); /* * Backlight modules. @@ -100,7 +100,7 @@ static devclass_t backlight_devclass; DRIVER_MODULE(backlight, vgapci, backlight_driver, backlight_devclass, NULL, - NULL); + NULL); MODULE_DEPEND(backlight, pci, 1, 1, 1); @@ -177,22 +177,23 @@ sysctl_ctx_init(&sc->sc_sysctl_ctx); sc->sc_sysctl_tree = SYSCTL_ADD_NODE(&sc->sc_sysctl_ctx, - SYSCTL_STATIC_CHILDREN(_hw), - OID_AUTO, - device_get_name(dev), - CTLFLAG_RD, 0, ""); + SYSCTL_STATIC_CHILDREN(_hw), + OID_AUTO, + device_get_name(dev), + CTLFLAG_RD, 0, ""); SYSCTL_ADD_PROC(&sc->sc_sysctl_ctx, - SYSCTL_CHILDREN(sc->sc_sysctl_tree), - OID_AUTO, "enable", CTLTYPE_INT | CTLFLAG_RW, - sc, 0, model->bm_enable, "I", - "Turn the backlight on/off"); + SYSCTL_CHILDREN(sc->sc_sysctl_tree), + OID_AUTO, "enable", CTLTYPE_INT | CTLFLAG_RW, + sc, 0, model->bm_enable, "I", + "Turn the backlight on/off"); SYSCTL_ADD_PROC(&sc->sc_sysctl_ctx, - SYSCTL_CHILDREN(sc->sc_sysctl_tree), - OID_AUTO, "level", CTLTYPE_INT | CTLFLAG_RW, - sc, 0, model->bm_level, "I", - "Brightness level of the backlight"); + SYSCTL_CHILDREN(sc->sc_sysctl_tree), + OID_AUTO, "level", CTLTYPE_INT | CTLFLAG_RW, + sc, 0, model->bm_level, "I", + "Brightness level of the backlight"); + return 0; } ==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 (text+ko) ==== @@ -23,18 +23,15 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#2 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 $ * */ struct backlight_softc { device_t sc_dev; - uint32_t sc_enable; /* turn the backlight on/off */ uint32_t sc_level; /* brightness level */ - struct resource *sc_res; - struct sysctl_ctx_list sc_sysctl_ctx; struct sysctl_oid *sc_sysctl_tree; };