summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-19 17:08:41 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2006-01-19 17:08:41 +0000
commitae36f2054b5612aa7968cc0b722e6fd9f0446df1 (patch)
tree36f0c710576bef0a2dd796b1b8893ee1c0480afe /sys/arch/macppc/dev
parent5ddc9bd0d1112ccc5b376dcad408e01de66a48b8 (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/arch/macppc/dev')
-rw-r--r--sys/arch/macppc/dev/asms.c4
-rw-r--r--sys/arch/macppc/dev/smu.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/macppc/dev/asms.c b/sys/arch/macppc/dev/asms.c
index 157f0a0bdb3..17724436754 100644
--- a/sys/arch/macppc/dev/asms.c
+++ b/sys/arch/macppc/dev/asms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asms.c,v 1.2 2006/01/06 08:18:17 xsa Exp $ */
+/* $OpenBSD: asms.c,v 1.3 2006/01/19 17:08:39 grange Exp $ */
/*
* Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org>
*
@@ -269,7 +269,7 @@ asms_attach(struct device *parent, struct device *self, void *aux)
}
for (i = 0; i < ASMS_NUM_SENSORS; i++)
- SENSOR_ADD(&sc->sc_sensor[i]);
+ sensor_add(&sc->sc_sensor[i]);
printf("\n");
}
diff --git a/sys/arch/macppc/dev/smu.c b/sys/arch/macppc/dev/smu.c
index 70e7edc67d9..c0e510635a7 100644
--- a/sys/arch/macppc/dev/smu.c
+++ b/sys/arch/macppc/dev/smu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smu.c,v 1.10 2006/01/01 20:52:25 deraadt Exp $ */
+/* $OpenBSD: smu.c,v 1.11 2006/01/19 17:08:39 grange Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -291,7 +291,7 @@ smu_attach(struct device *parent, struct device *self, void *aux)
/* Start running fans at their "unmanaged" speed. */
smu_fan_set_rpm(sc, fan, fan->unmanaged_rpm);
- SENSOR_ADD(&fan->sensor);
+ sensor_add(&fan->sensor);
}
/* Sensors */
@@ -321,7 +321,7 @@ smu_attach(struct device *parent, struct device *self, void *aux)
strlcpy(loc, "Unknown", sizeof loc);
strlcpy(sensor->sensor.desc, loc, sizeof sensor->sensor.desc);
- SENSOR_ADD(&sensor->sensor);
+ sensor_add(&sensor->sensor);
}
/* CPU temperature diode calibration */