usb: provide typedefs for all the function callbacks.

This makes it easier to read for most people, and makes it substantially
easier to review changes in the function signatures themselves at a
later date.
This commit is contained in:
Kuldeep Singh Dhaka
2015-05-27 03:42:09 +05:30
committed by Karl Palsson
parent b1e495f51a
commit 4b892724cf
5 changed files with 23 additions and 22 deletions

View File

@@ -708,7 +708,7 @@ static void msc_data_tx_cb(usbd_device *usbd_dev, uint8_t ep)
*/
static int msc_control_request(usbd_device *usbd_dev,
struct usb_setup_data *req, uint8_t **buf, uint16_t *len,
void (**complete)(usbd_device *usbd_dev, struct usb_setup_data *req))
usbd_control_complete_callback *complete)
{
(void)complete;
(void)usbd_dev;