Correct a couple of typos in comments ("Hook info" -> "Hook into",
"prescision"->"precision")
This commit is contained in:
parent
a9fc8e65cd
commit
99cd9e5be7
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lm75.c,v 1.6 2006/03/29 06:41:24 thorpej Exp $ */
|
||||
/* $NetBSD: lm75.c,v 1.7 2006/04/04 19:38:38 riz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003 Wasabi Systems, Inc.
|
||||
|
@ -126,7 +126,7 @@ lmtemp_attach(struct device *parent, struct device *self, void *aux)
|
|||
ptype != PROP_STRING)
|
||||
strcpy(sc->sc_info[0].desc, sc->sc_dev.dv_xname);
|
||||
|
||||
/* Hook info system monitor. */
|
||||
/* Hook into system monitor. */
|
||||
sc->sc_sysmon.sme_ranges = lmtemp_ranges;
|
||||
sc->sc_sysmon.sme_sensor_info = sc->sc_info;
|
||||
sc->sc_sysmon.sme_sensor_data = sc->sc_sensor;
|
||||
|
@ -265,7 +265,7 @@ lmtemp_decode_ds75(const uint8_t *buf)
|
|||
|
||||
/*
|
||||
* Sign-extend the MSB byte, and add in the fractions of a
|
||||
* degree contained in the LSB (prescision 1/16th DegC).
|
||||
* degree contained in the LSB (precision 1/16th DegC).
|
||||
*/
|
||||
temp = (int8_t)buf[0];
|
||||
temp = (temp << 4) | ((buf[1] >> 4) & 0xf);
|
||||
|
|
Loading…
Reference in New Issue