summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYojiro Uo <yuo@cvs.openbsd.org>2010-04-15 04:57:30 +0000
committerYojiro Uo <yuo@cvs.openbsd.org>2010-04-15 04:57:30 +0000
commit3bed90971d080cedd6a2e02f5d7d2131a1e4a01a (patch)
tree725a6f9f9145cd9d53466ac8183305f340d5dbaa /sys
parent4a51ab87682b0f2a4aff3aaabd39980f48a95184 (diff)
add SENSOR_HUMIDITY to sensor framework to handle humidity values
ok kettenis@ xsa@ sobrado@ krw@ deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/sensors.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/sensors.h b/sys/sys/sensors.h
index a48397c82a0..64efee53b4e 100644
--- a/sys/sys/sensors.h
+++ b/sys/sys/sensors.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.h,v 1.25 2009/08/12 13:21:49 kettenis Exp $ */
+/* $OpenBSD: sensors.h,v 1.26 2010/04/15 04:57:28 yuo Exp $ */
/*
* Copyright (c) 2003, 2004 Alexander Yurchenko <grange@openbsd.org>
@@ -46,6 +46,7 @@ enum sensor_type {
SENSOR_LUX, /* illuminance (mulx) */
SENSOR_DRIVE, /* disk */
SENSOR_TIMEDELTA, /* system time error (nSec) */
+ SENSOR_HUMIDITY, /* humidity (m%RH) */
SENSOR_MAX_TYPES
};
@@ -66,6 +67,7 @@ static const char * const sensor_type_s[SENSOR_MAX_TYPES + 1] = {
"illuminance",
"drive",
"timedelta",
+ "humidity",
"undefined"
};
#endif /* !_KERNEL */