PERFORCE change 122827 for review
Rui Paulo
rpaulo at FreeBSD.org
Wed Jul 4 03:30:10 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122827
Change 122827 by rpaulo at 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;
}
More information about the p4-projects
mailing list