summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2007-01-03 05:52:29 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2007-01-03 05:52:29 +0000
commite46cd8f624a46e3f183489bde1cf1c8a4ade1209 (patch)
tree823eb793587712bcd53a79ebafc7cd8246e9f162 /sys/dev/acpi
parentbd240b828c03157dba320b2f4184b92b18b92db2 (diff)
Consistent naming for the sensors.
From Constantine Murenin <mureninc at gmail dot com>
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpiac.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/acpi/acpiac.c b/sys/dev/acpi/acpiac.c
index ec8d1d72e82..c0f8333f0df 100644
--- a/sys/dev/acpi/acpiac.c
+++ b/sys/dev/acpi/acpiac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiac.c,v 1.15 2006/12/28 17:30:46 mk Exp $ */
+/* $OpenBSD: acpiac.c,v 1.16 2007/01/03 05:52:28 marco Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -82,11 +82,12 @@ acpiac_attach(struct device *parent, struct device *self, void *aux)
strlcpy(sc->sc_sensdev.xname, DEVNAME(sc),
sizeof(sc->sc_sensdev.xname));
- strlcpy(sc->sens[0].desc, "power supply", sizeof(sc->sens[0].desc));
- sc->sens[0].type = SENSOR_INDICATOR;
- sensor_attach(&sc->sc_sensdev, &sc->sens[0]);
+ strlcpy(sc->sc_sens[0].desc, "power supply",
+ sizeof(sc->sc_sens[0].desc));
+ sc->sc_sens[0].type = SENSOR_INDICATOR;
+ sensor_attach(&sc->sc_sensdev, &sc->sc_sens[0]);
sensordev_install(&sc->sc_sensdev);
- sc->sens[0].value = sc->sc_ac_stat;
+ sc->sc_sens[0].value = sc->sc_ac_stat;
}
void
@@ -95,7 +96,7 @@ acpiac_refresh(void *arg)
struct acpiac_softc *sc = arg;
acpiac_getsta(sc);
- sc->sens[0].value = sc->sc_ac_stat;
+ sc->sc_sens[0].value = sc->sc_ac_stat;
}
int