From c32f4412e411ca726c9da2cab9fbc08d35ad7669 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 8 May 2013 01:06:35 +0000 Subject: re-commit uthum_activate() removal, now that uhidev(4) can handle it. testing by myself and mglocker@, ok mpi@ --- sys/dev/usb/uthum.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/uthum.c b/sys/dev/usb/uthum.c index 66d0fc47eb8..3fa05155935 100644 --- a/sys/dev/usb/uthum.c +++ b/sys/dev/usb/uthum.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthum.c,v 1.21 2013/05/04 21:55:56 sthen Exp $ */ +/* $OpenBSD: uthum.c,v 1.22 2013/05/08 01:06:34 sthen Exp $ */ /* * Copyright (c) 2009, 2010 Yojiro UO @@ -113,7 +113,6 @@ struct uthum_sensor { struct uthum_softc { struct uhidev sc_hdev; struct usbd_device *sc_udev; - u_char sc_dying; int sc_device_type; int sc_num_sensors; @@ -137,7 +136,6 @@ const struct usb_devno uthum_devs[] = { int uthum_match(struct device *, void *, void *); void uthum_attach(struct device *, struct device *, void *); int uthum_detach(struct device *, int); -int uthum_activate(struct device *, int); int uthum_issue_cmd(struct uthum_softc *, uint8_t, int); int uthum_read_data(struct uthum_softc *, uint8_t, uint8_t *, size_t, int); @@ -166,8 +164,7 @@ const struct cfattach uthum_ca = { sizeof(struct uthum_softc), uthum_match, uthum_attach, - uthum_detach, - uthum_activate + uthum_detach }; int @@ -278,19 +275,6 @@ uthum_detach(struct device *self, int flags) return (rv); } -int -uthum_activate(struct device *self, int act) -{ - struct uthum_softc *sc = (struct uthum_softc *)self; - - switch (act) { - case DVACT_DEACTIVATE: - sc->sc_dying = 1; - break; - } - return (0); -} - void uthum_intr(struct uhidev *addr, void *ibuf, u_int len) { -- cgit v1.2.3