summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost/usbhost_findclass.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-11 08:05:09 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-11 08:05:09 -0600
commitcea3147c69b1054b991e5324b529beec21307b7c (patch)
treeab2189dd62fd44e42e5c126f76ef9c7e0c38eaa1 /nuttx/drivers/usbhost/usbhost_findclass.c
parent3522823ee086fe022105b1cbcb8af38fee0f4263 (diff)
downloadnuttx-cea3147c69b1054b991e5324b529beec21307b7c.tar.gz
nuttx-cea3147c69b1054b991e5324b529beec21307b7c.tar.bz2
nuttx-cea3147c69b1054b991e5324b529beec21307b7c.zip
USB host drivers: Change all parmeters named class to usbclass to avoid C++ conflicts
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_findclass.c')
-rw-r--r--nuttx/drivers/usbhost/usbhost_findclass.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_findclass.c b/nuttx/drivers/usbhost/usbhost_findclass.c
index 8172db434..46fbfc76f 100644
--- a/nuttx/drivers/usbhost/usbhost_findclass.c
+++ b/nuttx/drivers/usbhost/usbhost_findclass.c
@@ -152,7 +152,7 @@ static bool usbhost_idmatch(const struct usbhost_id_s *classid,
const struct usbhost_registry_s *usbhost_findclass(const struct usbhost_id_s *id)
{
- struct usbhost_registry_s *class;
+ struct usbhost_registry_s *usbclass;
irqstate_t flags;
int ndx;
@@ -170,23 +170,23 @@ const struct usbhost_registry_s *usbhost_findclass(const struct usbhost_id_s *id
/* Examine each register class in the linked list */
- for (class = g_classregistry; class; class = class->flink)
+ for (usbclass = g_classregistry; usbclass; usbclass = usbclass->flink)
{
/* If the registered class supports more than one ID, subclass, or
* protocol, then try each.
*/
- uvdbg("Checking class:%p nids:%d\n", class, class->nids);
- for (ndx = 0; ndx < class->nids; ndx++)
+ uvdbg("Checking class:%p nids:%d\n", usbclass, usbclass->nids);
+ for (ndx = 0; ndx < usbclass->nids; ndx++)
{
/* Did we find a matching ID? */
- if (usbhost_idmatch(&class->id[ndx], id))
+ if (usbhost_idmatch(&usbclass->id[ndx], id))
{
/* Yes.. restore interrupts and return the class info */
irqrestore(flags);
- return class;
+ return usbclass;
}
}
}