Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2007 03:30:09 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 122827 for review
Message-ID:  <200707040330.l643U9sa072472@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707040330.l643U9sa072472>