diff options
| author | thorpej <thorpej@NetBSD.org> | 2006-02-18 05:04:11 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2006-02-18 05:04:11 +0000 |
| commit | 680d9eea68a7e56ff019e2a40ea0f3bef6f891b1 (patch) | |
| tree | c5db536440c1737387df2098ed99a13804dcf19c /sys/dev/i2c | |
| parent | 8c304742805588384ca2a5dd132e4a76ef7c6314 (diff) | |
- Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
associates the MAC address property with the epe device instance.
Diffstat (limited to 'sys/dev/i2c')
| -rw-r--r-- | sys/dev/i2c/lm75.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/lm75.c b/sys/dev/i2c/lm75.c index 560e2f3a705..6621a3db5ea 100644 --- a/sys/dev/i2c/lm75.c +++ b/sys/dev/i2c/lm75.c @@ -1,4 +1,4 @@ -/* $NetBSD: lm75.c,v 1.3 2005/12/11 12:21:22 christos Exp $ */ +/* $NetBSD: lm75.c,v 1.4 2006/02/18 05:04:12 thorpej Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -120,7 +120,7 @@ lmtemp_attach(struct device *parent, struct device *self, void *aux) sc->sc_sensor[0].warnflags = ENVSYS_WARN_OK; sc->sc_sensor[0].units = sc->sc_info[0].units = ENVSYS_STEMP; - if (prop_get(dev_propdb, &sc->sc_dev, "description", + if (devprop_get(&sc->sc_dev, "description", sc->sc_info[0].desc, sizeof(sc->sc_info[0].desc), &ptype) < 1 || ptype != PROP_STRING) |
