-/* $OpenBSD: uhidev.c,v 1.87 2021/02/11 06:53:44 anton Exp $ */
+/* $OpenBSD: uhidev.c,v 1.88 2021/02/11 06:55:10 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.26 2021/02/04 16:18:34 anton Exp $ */
+/* $OpenBSD: uhidev.h,v 1.27 2021/02/11 06:55:10 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);