diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-19 17:08:41 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-19 17:08:41 +0000 |
commit | ae36f2054b5612aa7968cc0b722e6fd9f0446df1 (patch) | |
tree | 36f0c710576bef0a2dd796b1b8893ee1c0480afe /sys/dev/i2c/ds1631.c | |
parent | 5ddc9bd0d1112ccc5b376dcad408e01de66a48b8 (diff) |
Replace SENSOR_ADD() macro with a pair of functions
sensor_add()/sensor_del() so that sensors can be attached
and detached dynamicaly.
ok kettenis@ deraadt@ dlg@
Diffstat (limited to 'sys/dev/i2c/ds1631.c')
-rw-r--r-- | sys/dev/i2c/ds1631.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/ds1631.c b/sys/dev/i2c/ds1631.c index 13bcc30d9e8..2eb38c59d18 100644 --- a/sys/dev/i2c/ds1631.c +++ b/sys/dev/i2c/ds1631.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ds1631.c,v 1.4 2006/01/13 21:41:40 deraadt Exp $ */ +/* $OpenBSD: ds1631.c,v 1.5 2006/01/19 17:08:39 grange Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -126,7 +126,7 @@ dostart: } for (i = 0; i < MAXDS_NUM_SENSORS; i++) - SENSOR_ADD(&sc->sc_sensor[i]); + sensor_add(&sc->sc_sensor[i]); printf("\n"); } |