usb: correctly document return type.
The three existing usb drivers have no possible path that doesn't return the object here, so I've left that comment, but it is plausible that future drivers might have some reason that allows failing to init. We should strive to avoid that though. Fixes github issue: #494
This commit is contained in:
parent
9edde424f8
commit
bc212bba45
@ -59,7 +59,7 @@ LGPL License Terms @ref lgpl_license
|
|||||||
* received during control requests with DATA
|
* received during control requests with DATA
|
||||||
* stage
|
* stage
|
||||||
* @param control_buffer_size Size of control_buffer
|
* @param control_buffer_size Size of control_buffer
|
||||||
* @return Zero on success (currently cannot fail).
|
* @return the usb device initialized for use. (currently cannot fail).
|
||||||
*/
|
*/
|
||||||
usbd_device *usbd_init(const usbd_driver *driver,
|
usbd_device *usbd_init(const usbd_driver *driver,
|
||||||
const struct usb_device_descriptor *dev,
|
const struct usb_device_descriptor *dev,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user