-/* $OpenBSD: uhidev.c,v 1.91 2021/03/17 19:44:16 jcs Exp $ */
+/* $OpenBSD: uhidev.c,v 1.92 2021/03/18 09:21:53 anton Exp $ */
/* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */
/*
sc->sc_subdevs[repid] = dev;
return 0;
}
-
-int
-uhidev_unset_report_dev(struct uhidev_softc *sc, int repid)
-{
- if (repid >= sc->sc_nrepid)
- return EINVAL;
-
- sc->sc_subdevs[repid] = NULL;
- return 0;
-}
-/* $OpenBSD: uhidev.h,v 1.28 2021/03/08 14:35:57 jcs Exp $ */
+/* $OpenBSD: uhidev.h,v 1.29 2021/03/18 09:21:53 anton Exp $ */
/* $NetBSD: uhidev.h,v 1.3 2002/10/08 09:56:17 dan Exp $ */
/*
void *, void (*)(void *, int, void *, int));
usbd_status uhidev_write(struct uhidev_softc *, void *, int);
int uhidev_set_report_dev(struct uhidev_softc *, struct uhidev *, int);
-int uhidev_unset_report_dev(struct uhidev_softc *, int);
-/* $OpenBSD: uhidpp.c,v 1.12 2021/02/16 18:36:43 anton Exp $ */
+/* $OpenBSD: uhidpp.c,v 1.13 2021/03/18 09:21:53 anton Exp $ */
/*
* Copyright (c) 2021 Anton Lindqvist <anton@openbsd.org>
sensor_detach(&sc->sc_sensdev, &dev->d_battery.b_sens[j]);
}
- /*
- * Since this driver has multiple device handlers attached, remove all
- * of them preventing the uhidev parent from calling this detach routine
- * more than once.
- */
- uhidev_unset_report_dev(sc->sc_hdev.sc_parent, HIDPP_REPORT_ID_SHORT);
- uhidev_unset_report_dev(sc->sc_hdev.sc_parent, HIDPP_REPORT_ID_LONG);
-
uhidev_close(&sc->sc_hdev);
return 0;