mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Our softc has no sc_hdev, but a sc_dev. This in turn has no direct
sc_parent, so back out the previous commit, as it breaks the build. If there's a pointy hat left, pass it on.
This commit is contained in:
parent
e184bd9576
commit
35ea382b1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131142
@ -2,8 +2,6 @@
|
||||
|
||||
/* Also already merged from NetBSD:
|
||||
* $NetBSD: uhid.c,v 1.54 2002/09/23 05:51:21 simonb Exp $
|
||||
* $NetBSD: uhid.c,v 1.61 2004/05/08 11:41:19 jdolecek Exp $
|
||||
* $NetBSD: uhid.c,v 1.62 2004/06/23 02:30:52 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
@ -705,22 +703,6 @@ uhid_do_ioctl(struct uhid_softc *sc, u_long cmd, caddr_t addr, int flag,
|
||||
*(int *)addr = 0; /* XXX: we only support reportid 0? */
|
||||
break;
|
||||
|
||||
case USB_GET_DEVICEINFO:
|
||||
usbd_fill_deviceinfo(sc->sc_hdev.sc_parent->sc_udev,
|
||||
(struct usb_device_info *)addr, 1);
|
||||
break;
|
||||
|
||||
case USB_GET_STRING_DESC:
|
||||
{
|
||||
struct usb_string_desc *si = (struct usb_string_desc *)addr;
|
||||
err = usbd_get_string_desc(sc->sc_hdev.sc_parent->sc_udev,
|
||||
si->usd_string_index,
|
||||
si->usd_language_id, &si->usd_desc, &size);
|
||||
if (err)
|
||||
return (EINVAL);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
return (EINVAL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user