summaryrefslogtreecommitdiff
path: root/nuttx/drivers/usbhost/usbhost_findclass.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:49:02 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-16 00:49:02 +0000
commit86a38f248f430276682e5e8d357f74f8b8bcb99c (patch)
treeb8e2d2308503e72fc0b8994e38eb28d8aaf3090d /nuttx/drivers/usbhost/usbhost_findclass.c
parent5d449ef3904b7130000b729f6e97f66d8ff99fe0 (diff)
downloadnuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.tar.gz
nuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.tar.bz2
nuttx-86a38f248f430276682e5e8d357f74f8b8bcb99c.zip
Changes to get USB host driver compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3185 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_findclass.c')
-rw-r--r--nuttx/drivers/usbhost/usbhost_findclass.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_findclass.c b/nuttx/drivers/usbhost/usbhost_findclass.c
index 8d829defe..1b2a7edae 100644
--- a/nuttx/drivers/usbhost/usbhost_findclass.c
+++ b/nuttx/drivers/usbhost/usbhost_findclass.c
@@ -38,6 +38,8 @@
****************************************************************************/
#include <nuttx/config.h>
+
+#include <sys/types.h>
#include <stdbool.h>
#include <nuttx/usb/usb.h>
@@ -81,14 +83,14 @@
*
****************************************************************************/
-static bool usbhost_ismatch(const struct usbhost_id_s *classid,
+static bool usbhost_idmatch(const struct usbhost_id_s *classid,
const struct usbhost_id_s *devid)
{
/* The base class ID, subclass and protocol have to match up in any event */
if (devid->base == classid->base &&
devid->subclass == classid->subclass &&
- devid->proto == clsssid->proto)
+ devid->proto == classid->proto)
{
/* If this is a vendor-specific class ID, then the VID and PID have to
* match as well.