Some trivial USB-related changes

This commit is contained in:
Gregory Nutt
2015-04-20 09:51:58 -06:00
parent 0a014e0364
commit 356292b60e
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr,
ret = -ENOMEM; ret = -ENOMEM;
devclass = CLASS_CREATE(reg, drvr, id); devclass = CLASS_CREATE(reg, drvr, id);
uvdbg("CLASS_CREATE: %p\n", devclass); uvdbg("CLASS_CREATE: %p\n", devclass);
if (devclass) if (devclass != NULL)
{ {
/* Then bind the newly instantiated class instance */ /* Then bind the newly instantiated class instance */
+3 -3
View File
@@ -474,7 +474,7 @@
* Input Parameters: * Input Parameters:
* drvr - The USB host driver instance obtained as a parameter from the call to * drvr - The USB host driver instance obtained as a parameter from the call to
* the class create() method. * the class create() method.
* ed - The IN or OUT endpoint descriptor for the device endpoint on which to * ep - The IN or OUT endpoint descriptor for the device endpoint on which to
* perform the transfer. * perform the transfer.
* buffer - A buffer containing the data to be sent (OUT endpoint) or received * buffer - A buffer containing the data to be sent (OUT endpoint) or received
* (IN endpoint). buffer must have been allocated using DRVR_ALLOC * (IN endpoint). buffer must have been allocated using DRVR_ALLOC
@@ -495,7 +495,7 @@
* *
************************************************************************************/ ************************************************************************************/
#define DRVR_TRANSFER(drvr,ed,buffer,buflen) ((drvr)->transfer(drvr,ed,buffer,buflen)) #define DRVR_TRANSFER(drvr,ep,buffer,buflen) ((drvr)->transfer(drvr,ep,buffer,buflen))
/************************************************************************************ /************************************************************************************
* Name: DRVR_DISCONNECT * Name: DRVR_DISCONNECT
@@ -549,7 +549,7 @@ struct usbhost_class_s; /* Forward reference to the class state structure */
struct usbhost_registry_s struct usbhost_registry_s
{ {
/* This field is used to implement a singly-link registry structure. Because of /* This field is used to implement a singly-link registry structure. Because of
* the presence of this link, provides of structy usbhost_registry_s instances must * the presence of this link, provides of struct usbhost_registry_s instances must
* provide those instances in write-able memory (RAM). * provide those instances in write-able memory (RAM).
*/ */