summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uoak.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-19 14:52:39 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-10-19 14:52:39 +0000
commit5ca98c296bb08c91d604f1dc1fb6e015ca6162eb (patch)
tree99744db0ce937ede41e09aeb101531bf6e17e9ce /sys/dev/usb/uoak.h
parent3a6a5cd97b932882a2e060287770c5cf3a4d48b4 (diff)
small cleanups and output prettying
ok yuo matthieu
Diffstat (limited to 'sys/dev/usb/uoak.h')
-rw-r--r--sys/dev/usb/uoak.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/uoak.h b/sys/dev/usb/uoak.h
index 615e11ab72a..0bc2ca9daff 100644
--- a/sys/dev/usb/uoak.h
+++ b/sys/dev/usb/uoak.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uoak.h,v 1.1 2012/09/20 13:52:11 yuo Exp $ */
+/* $OpenBSD: uoak.h,v 1.2 2012/10/19 14:52:38 deraadt Exp $ */
/*
* Copyright (c) 2012 Yojiro UO <yuo@nui.org>
@@ -29,7 +29,7 @@
/* OAK sensor command */
/* 1 byte commands */
#define OAK_CMD_REPORTMODE 0x0000
-#define OAK_REPORTMODE_AFTERSAMPING 0x0 /* default */
+#define OAK_REPORTMODE_AFTERSAMPLING 0x0 /* default */
#define OAK_REPORTMODE_AFTERCHANGE 0x1
#define OAK_REPORTMODE_FIXEDRATE 0x2
#define OAK_CMD_LEDMODE 0x0001
@@ -138,10 +138,10 @@ struct uoak_softc {
struct uoak_sensor {
- struct ksensor ave;
+ struct ksensor avg;
struct ksensor max;
struct ksensor min;
- int64_t vave, vmax, vmin;
+ int64_t vavg, vmax, vmin;
unsigned int count;
};