summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2007-07-04 19:00:43 +0000
committerxtraeme <xtraeme@NetBSD.org>2007-07-04 19:00:43 +0000
commit60ed581de970caada906e92e8574d5fd1ce5f4d1 (patch)
treecdd88c08953c3ae006fe7f777a73ecc752b6b7cc /sys/dev/i2c
parent1492e247839e5b31546cf4a67d9a961d6c1f6a46 (diff)
There's no need to set the "envsys-description" property in the
driver's dictionary anymore, because with envsys2 you can change descriptions.
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/lm75.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/i2c/lm75.c b/sys/dev/i2c/lm75.c
index fbe5b4b2293..6dea2883cde 100644
--- a/sys/dev/i2c/lm75.c
+++ b/sys/dev/i2c/lm75.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lm75.c,v 1.12 2007/07/01 07:37:16 xtraeme Exp $ */
+/* $NetBSD: lm75.c,v 1.13 2007/07/04 19:00:43 xtraeme Exp $ */
/*
* Copyright (c) 2003 Wasabi Systems, Inc.
@@ -116,7 +116,6 @@ lmtemp_attach(struct device *parent, struct device *self, void *aux)
{
struct lmtemp_softc *sc = device_private(self);
struct i2c_attach_args *ia = aux;
- prop_string_t desc;
int i;
for (i = 0; lmtemptbl[i].lmtemp_type != -1 ; i++)
@@ -144,14 +143,6 @@ lmtemp_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sensor[0].sensor = 0;
sc->sc_sensor[0].state = ENVSYS_FVALID;
sc->sc_sensor[0].units = ENVSYS_STEMP;
- desc = prop_dictionary_get(device_properties(&sc->sc_dev),
- "envsys-description");
- if (desc != NULL &&
- prop_object_type(desc) == PROP_TYPE_STRING &&
- prop_string_size(desc) > 0)
- strcpy(sc->sc_sensor[0].desc, prop_string_cstring_nocopy(desc));
- else
- strcpy(sc->sc_sensor[0].desc, sc->sc_dev.dv_xname);
sc->sc_lmtemp_decode = lmtemptbl[i].lmtemp_decode;