mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Expand USB_ATTACH_SETUP inline.
Kill devinfo stuff.
This commit is contained in:
parent
8d58ce651f
commit
387ecc9396
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170456
@ -313,16 +313,13 @@ USB_ATTACH(ubt)
|
||||
usb_config_descriptor_t *cd = NULL;
|
||||
usb_interface_descriptor_t *id = NULL;
|
||||
usb_endpoint_descriptor_t *ed = NULL;
|
||||
char devinfo[1024];
|
||||
usbd_status error;
|
||||
int i, ai, alt_no, isoc_in, isoc_out,
|
||||
isoc_isize, isoc_osize;
|
||||
|
||||
/* Get USB device info */
|
||||
sc->sc_dev = self;
|
||||
sc->sc_udev = uaa->device;
|
||||
usbd_devinfo(sc->sc_udev, 0, devinfo);
|
||||
USB_ATTACH_SETUP;
|
||||
printf("%s: %s\n", device_get_nameunit(sc->sc_dev), devinfo);
|
||||
|
||||
/*
|
||||
* Initialize device softc structure
|
||||
|
@ -151,12 +151,9 @@ USB_ATTACH(ubtbcmfw)
|
||||
USB_ATTACH_START(ubtbcmfw, sc, uaa);
|
||||
usbd_interface_handle iface;
|
||||
usbd_status err;
|
||||
char devinfo[1024];
|
||||
|
||||
sc->sc_dev = self;
|
||||
sc->sc_udev = uaa->device;
|
||||
usbd_devinfo(sc->sc_udev, 0, devinfo);
|
||||
USB_ATTACH_SETUP;
|
||||
printf("%s: %s\n", USBDEVNAME(sc->sc_dev), devinfo);
|
||||
|
||||
sc->sc_ctrl_dev = sc->sc_intr_in_dev = sc->sc_bulk_out_dev = NULL;
|
||||
sc->sc_intr_in_pipe = sc->sc_bulk_out_pipe = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user