summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uthum.c
diff options
context:
space:
mode:
authorYojiro Uo <yuo@cvs.openbsd.org>2009-12-17 08:28:04 +0000
committerYojiro Uo <yuo@cvs.openbsd.org>2009-12-17 08:28:04 +0000
commiteb05d3aa62de47d58a7ca7bf6e28e66a91f4ec71 (patch)
tree0f2c5c6d2ea9ef4e2c5d83426a32b99d61e3c44f /sys/dev/usb/uthum.c
parent3b307801ebe8a06bc7c8fea7dfd78123b31e5ea3 (diff)
fix softc structure to fit as uhid sub device.
ok deraadt@
Diffstat (limited to 'sys/dev/usb/uthum.c')
-rw-r--r--sys/dev/usb/uthum.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uthum.c b/sys/dev/usb/uthum.c
index e344196fe3a..21d177bc778 100644
--- a/sys/dev/usb/uthum.c
+++ b/sys/dev/usb/uthum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthum.c,v 1.4 2009/12/10 04:44:27 deraadt Exp $ */
+/* $OpenBSD: uthum.c,v 1.5 2009/12/17 08:28:03 yuo Exp $ */
/*
* Copyright (c) 2009 Yojiro UO <yuo@nui.org>
@@ -66,7 +66,6 @@ static uint8_t cmd_end[8] =
#define UTHUM_TYPE_SHT1x 1
struct uthum_softc {
- struct device sc_dev;
struct uhidev sc_hdev;
usbd_device_handle sc_udev;
u_char sc_dying;
@@ -177,7 +176,7 @@ uthum_attach(struct device *parent, struct device *self, void *aux)
sc->sc_sensortype = uthum_check_sensortype(sc);
/* attach sensor */
- strlcpy(sc->sc_sensordev.xname, sc->sc_dev.dv_xname,
+ strlcpy(sc->sc_sensordev.xname, sc->sc_hdev.sc_dev.dv_xname,
sizeof(sc->sc_sensordev.xname));
switch (sc->sc_sensortype) {