diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-11 08:05:09 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-11 08:05:09 -0600 |
commit | cea3147c69b1054b991e5324b529beec21307b7c (patch) | |
tree | ab2189dd62fd44e42e5c126f76ef9c7e0c38eaa1 /nuttx/drivers/usbhost/usbhost_enumerate.c | |
parent | 3522823ee086fe022105b1cbcb8af38fee0f4263 (diff) | |
download | px4-nuttx-cea3147c69b1054b991e5324b529beec21307b7c.tar.gz px4-nuttx-cea3147c69b1054b991e5324b529beec21307b7c.tar.bz2 px4-nuttx-cea3147c69b1054b991e5324b529beec21307b7c.zip |
USB host drivers: Change all parmeters named class to usbclass to avoid C++ conflicts
Diffstat (limited to 'nuttx/drivers/usbhost/usbhost_enumerate.c')
-rw-r--r-- | nuttx/drivers/usbhost/usbhost_enumerate.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/drivers/usbhost/usbhost_enumerate.c b/nuttx/drivers/usbhost/usbhost_enumerate.c index 97f9ac9ef..989f6923a 100644 --- a/nuttx/drivers/usbhost/usbhost_enumerate.c +++ b/nuttx/drivers/usbhost/usbhost_enumerate.c @@ -73,7 +73,7 @@ static inline int usbhost_configdesc(const uint8_t *configdesc, int desclen, static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr, const uint8_t *configdesc, int desclen, struct usbhost_id_s *id, uint8_t funcaddr, - FAR struct usbhost_class_s **class); + FAR struct usbhost_class_s **usbclass); /******************************************************************************* * Private Data @@ -224,7 +224,7 @@ static inline int usbhost_configdesc(const uint8_t *configdesc, int cfglen, static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr, const uint8_t *configdesc, int desclen, struct usbhost_id_s *id, uint8_t funcaddr, - FAR struct usbhost_class_s **class) + FAR struct usbhost_class_s **usbclass) { FAR struct usbhost_class_s *devclass; const struct usbhost_registry_s *reg; @@ -259,7 +259,7 @@ static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr, } else { - *class = devclass; + *usbclass = devclass; } } } @@ -290,7 +290,7 @@ static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr, * the class create() method. * funcaddr - The USB address of the function containing the endpoint that EP0 * controls - * class - If the class driver for the device is successful located + * usbclass - If the class driver for the device is successful located * and bound to the driver, the allocated class instance is returned into * this caller-provided memory location. * @@ -306,7 +306,7 @@ static inline int usbhost_classbind(FAR struct usbhost_driver_s *drvr, *******************************************************************************/ int usbhost_enumerate(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr, - FAR struct usbhost_class_s **class) + FAR struct usbhost_class_s **usbclass) { struct usb_ctrlreq_s *ctrlreq; struct usbhost_devinfo_s devinfo; @@ -318,7 +318,7 @@ int usbhost_enumerate(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr, uint8_t *buffer; int ret; - DEBUGASSERT(drvr && class); + DEBUGASSERT(drvr && usbclass); /* Allocate descriptor buffers for use in this function. We will need two: * One for the request and one for the data buffer. @@ -542,7 +542,7 @@ int usbhost_enumerate(FAR struct usbhost_driver_s *drvr, uint8_t funcaddr, * will begin configuring the device. */ - ret = usbhost_classbind(drvr, buffer, cfglen, &id, funcaddr, class); + ret = usbhost_classbind(drvr, buffer, cfglen, &id, funcaddr, usbclass); if (ret != OK) { udbg("ERROR: usbhost_classbind returned %d\n", ret); |