From owner-p4-projects@FreeBSD.ORG Wed Jul 4 03:30:10 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 E811616A4A7; Wed, 4 Jul 2007 03:30:09 +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 BACF916A41F for ; Wed, 4 Jul 2007 03:30:09 +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 AC38E13C43E for ; Wed, 4 Jul 2007 03:30:09 +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 l643U9Yv072476 for ; Wed, 4 Jul 2007 03:30:09 GMT (envelope-from rpaulo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l643U9sa072472 for perforce@freebsd.org; Wed, 4 Jul 2007 03:30:09 GMT (envelope-from rpaulo@FreeBSD.org) Date: Wed, 4 Jul 2007 03:30:09 GMT Message-Id: <200707040330.l643U9sa072472@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 122827 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:30:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=122827 Change 122827 by rpaulo@rpaulo_epsilon on 2007/07/04 03:29:16 Style fixes. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#8 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#8 (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/msrtemp/msrtemp.c#7 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/msrtemp/msrtemp.c#8 $ * */ @@ -52,19 +52,18 @@ struct msrtemp_softc { device_t sc_dev; - struct sysctl_oid *sc_oid; }; /* * Device methods. */ -static void msrtemp_identify(driver_t *, device_t); -static int msrtemp_probe(device_t); -static int msrtemp_attach(device_t); -static int msrtemp_detach(device_t); +static void msrtemp_identify(driver_t *driver, device_t parent); +static int msrtemp_probe(device_t dev); +static int msrtemp_attach(device_t dev); +static int msrtemp_detach(device_t dev); -static int msrtemp_get_temp(int); +static int msrtemp_get_temp(int cpu); static int msrtemp_get_temp_sysctl(SYSCTL_HANDLER_ARGS); static device_method_t msrtemp_methods[] = { @@ -139,12 +138,12 @@ * Add the "temperature" MIB to dev.cpu.N. */ sc->sc_oid = SYSCTL_ADD_PROC(device_get_sysctl_ctx(pdev), - SYSCTL_CHILDREN( - device_get_sysctl_tree(pdev)), - OID_AUTO, "temperature", - CTLTYPE_INT | CTLFLAG_RD, - dev, 0, msrtemp_get_temp_sysctl, "I", - "Current temperature in degC"); + SYSCTL_CHILDREN(device_get_sysctl_tree(pdev)), + OID_AUTO, "temperature", + CTLTYPE_INT | CTLFLAG_RD, + dev, 0, msrtemp_get_temp_sysctl, "I", + "Current temperature in degC"); + return 0; }