diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-01-05 06:26:45 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-01-05 06:26:45 +0000 |
commit | 699b25605611774ab2cc47d4b3bbd3a8279bda69 (patch) | |
tree | b68bd599a8409be94b73b2fcb0edf9c275aeb80c /sys/dev/isa | |
parent | e10a5dcc087d8fd38c95670ae9ae7568efa5fc3b (diff) |
Switch to indicator type for sensors with boolean values.
From Constantine A. Murenin
Diffstat (limited to 'sys/dev/isa')
-rw-r--r-- | sys/dev/isa/aps.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/isa/aps.c b/sys/dev/isa/aps.c index 15479b574dd..6d3959196f1 100644 --- a/sys/dev/isa/aps.c +++ b/sys/dev/isa/aps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aps.c,v 1.10 2007/01/05 06:00:25 jsg Exp $ */ +/* $OpenBSD: aps.c,v 1.11 2007/01/05 06:26:44 jsg Exp $ */ /* * Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org> * @@ -155,7 +155,6 @@ aps_attach(struct device *parent, struct device *self, void *aux) sizeof(sc->sensors[APS_SENSOR_YACCEL].desc), "Y_ACCEL"); sc->sensors[APS_SENSOR_TEMP1].type = SENSOR_TEMP; - sc->sensors[APS_SENSOR_TEMP2].type = SENSOR_TEMP; sc->sensors[APS_SENSOR_XVAR].type = SENSOR_INTEGER; @@ -170,15 +169,15 @@ aps_attach(struct device *parent, struct device *self, void *aux) snprintf(sc->sensors[APS_SENSOR_UNK].desc, sizeof(sc->sensors[APS_SENSOR_UNK].desc), "unknown"); - sc->sensors[APS_SENSOR_KBACT].type = SENSOR_INTEGER; + sc->sensors[APS_SENSOR_KBACT].type = SENSOR_INDICATOR; snprintf(sc->sensors[APS_SENSOR_KBACT].desc, sizeof(sc->sensors[APS_SENSOR_KBACT].desc), "Keyboard Active"); - sc->sensors[APS_SENSOR_MSACT].type = SENSOR_INTEGER; + sc->sensors[APS_SENSOR_MSACT].type = SENSOR_INDICATOR; snprintf(sc->sensors[APS_SENSOR_MSACT].desc, sizeof(sc->sensors[APS_SENSOR_MSACT].desc), "Mouse Active"); - sc->sensors[APS_SENSOR_LIDOPEN].type = SENSOR_INTEGER; + sc->sensors[APS_SENSOR_LIDOPEN].type = SENSOR_INDICATOR; snprintf(sc->sensors[APS_SENSOR_LIDOPEN].desc, sizeof(sc->sensors[APS_SENSOR_LIDOPEN].desc), "Lid Open"); |