From ae36f2054b5612aa7968cc0b722e6fd9f0446df1 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Thu, 19 Jan 2006 17:08:41 +0000 Subject: 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@ --- sys/dev/ic/lm78.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/lm78.c b/sys/dev/ic/lm78.c index 300549eb715..ce2454c4eec 100644 --- a/sys/dev/ic/lm78.c +++ b/sys/dev/ic/lm78.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lm78.c,v 1.3 2006/01/17 22:01:48 kettenis Exp $ */ +/* $OpenBSD: lm78.c,v 1.4 2006/01/19 17:08:40 grange Exp $ */ /* * Copyright (c) 2005, 2006 Mark Kettenis @@ -331,7 +331,7 @@ lm_attach(struct lm_softc *sc) /* Add sensors */ for (i = 0; i < sc->numsensors; ++i) - SENSOR_ADD(&sc->sensors[i]); + sensor_add(&sc->sensors[i]); } int -- cgit v1.2.3