summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c/maxim6690.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-06-24 05:34:35 +0000
committerdlg <dlg@openbsd.org>2007-06-24 05:34:35 +0000
commitabd9fc2824903fe1c710cba31e446d89a8bb4037 (patch)
tree5364d8d46ed4e16c142ac4efcb6c7be4dc4f5ea1 /sys/dev/i2c/maxim6690.c
parentImplement disk sizes > 2^32-1. Code modelled on NetBSD. (diff)
downloadwireguard-openbsd-abd9fc2824903fe1c710cba31e446d89a8bb4037.tar.xz
wireguard-openbsd-abd9fc2824903fe1c710cba31e446d89a8bb4037.zip
rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
Diffstat (limited to 'sys/dev/i2c/maxim6690.c')
-rw-r--r--sys/dev/i2c/maxim6690.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/maxim6690.c b/sys/dev/i2c/maxim6690.c
index f8448595d13..085aaff18cc 100644
--- a/sys/dev/i2c/maxim6690.c
+++ b/sys/dev/i2c/maxim6690.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: maxim6690.c,v 1.14 2007/03/22 16:55:31 deraadt Exp $ */
+/* $OpenBSD: maxim6690.c,v 1.15 2007/06/24 05:34:35 dlg Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -132,7 +132,7 @@ maxtmp_attach(struct device *parent, struct device *self, void *aux)
strlcpy(sc->sc_sensor[MAXTMP_EXT].desc, "External",
sizeof(sc->sc_sensor[MAXTMP_EXT].desc));
- if (sensor_task_register(sc, maxtmp_refresh, 5)) {
+ if (sensor_task_register(sc, maxtmp_refresh, 5) == NULL) {
printf(", unable to register update task\n");
return;
}