diff options
author | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2007-10-31 20:46:18 +0000 |
---|---|---|
committer | Constantine A. Murenin <cnst@cvs.openbsd.org> | 2007-10-31 20:46:18 +0000 |
commit | d3fb3dc5ccb8886e10d7a4fb7a145b4330b6ef02 (patch) | |
tree | 625c44aea649461d785bae4dd72184e4a2eb9fb7 | |
parent | 1fc3b174ac3666252ba071c7baecf438144f7dbe (diff) |
don't clear sensor flags that were never set; ok deraadt
-rw-r--r-- | sys/dev/i2c/adt7460.c | 3 | ||||
-rw-r--r-- | sys/dev/i2c/asc7621.c | 3 | ||||
-rw-r--r-- | sys/dev/i2c/fintek.c | 6 | ||||
-rw-r--r-- | sys/dev/i2c/lm93.c | 3 |
4 files changed, 5 insertions, 10 deletions
diff --git a/sys/dev/i2c/adt7460.c b/sys/dev/i2c/adt7460.c index afaeac888a8..4d50a0d5e9e 100644 --- a/sys/dev/i2c/adt7460.c +++ b/sys/dev/i2c/adt7460.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adt7460.c,v 1.18 2007/06/24 05:34:35 dlg Exp $ */ +/* $OpenBSD: adt7460.c,v 1.19 2007/10/31 20:46:17 cnst Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -240,7 +240,6 @@ adt_attach(struct device *parent, struct device *self, void *aux) if (worklist[i].index >= 32768 && sc->chip->ratio[worklist[i].index - 32768] == 0) continue; - sc->sc_sensor[i].flags &= ~SENSOR_FINVALID; sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]); } sensordev_install(&sc->sc_sensordev); diff --git a/sys/dev/i2c/asc7621.c b/sys/dev/i2c/asc7621.c index c52f1a7d08a..cefca7685a2 100644 --- a/sys/dev/i2c/asc7621.c +++ b/sys/dev/i2c/asc7621.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asc7621.c,v 1.3 2007/10/24 19:00:59 mikeb Exp $ */ +/* $OpenBSD: asc7621.c,v 1.4 2007/10/31 20:46:17 cnst Exp $ */ /* * Copyright (c) 2007 Mike Belopuhov @@ -191,7 +191,6 @@ adl_attach(struct device *parent, struct device *self, void *aux) strlcpy(sc->sc_sensor[i].desc, adl_worklist[i].name, sizeof(sc->sc_sensor[i].desc)); - sc->sc_sensor[i].flags &= ~SENSOR_FINVALID; sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]); } sensordev_install(&sc->sc_sensordev); diff --git a/sys/dev/i2c/fintek.c b/sys/dev/i2c/fintek.c index 2fb24d0fe4c..6e799bd5d1b 100644 --- a/sys/dev/i2c/fintek.c +++ b/sys/dev/i2c/fintek.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fintek.c,v 1.6 2007/06/24 05:34:35 dlg Exp $ */ +/* $OpenBSD: fintek.c,v 1.7 2007/10/31 20:46:17 cnst Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@openbsd.org> * @@ -160,10 +160,8 @@ fintek_attach(struct device *parent, struct device *self, void *aux) return; } - for (i = 0; i < F_NUM_SENSORS; i++) { - sc->sc_sensor[i].flags &= ~SENSOR_FINVALID; + for (i = 0; i < F_NUM_SENSORS; i++) sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]); - } sensordev_install(&sc->sc_sensordev); printf("\n"); diff --git a/sys/dev/i2c/lm93.c b/sys/dev/i2c/lm93.c index b57fe8128df..00b7b91dfb9 100644 --- a/sys/dev/i2c/lm93.c +++ b/sys/dev/i2c/lm93.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lm93.c,v 1.7 2007/09/06 16:39:06 cnst Exp $ */ +/* $OpenBSD: lm93.c,v 1.8 2007/10/31 20:46:17 cnst Exp $ */ /* * Copyright (c) 2007 Theo de Raadt @@ -180,7 +180,6 @@ lmn_attach(struct device *parent, struct device *self, void *aux) strlcpy(sc->sc_sensor[i].desc, lmn_worklist[i].name, sizeof(sc->sc_sensor[i].desc)); - sc->sc_sensor[i].flags &= ~SENSOR_FINVALID; sensor_attach(&sc->sc_sensordev, &sc->sc_sensor[i]); } sensordev_install(&sc->sc_sensordev); |