diff options
Diffstat (limited to 'drivers/usb/misc/auerswald.c')
-rw-r--r-- | drivers/usb/misc/auerswald.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/usb/misc/auerswald.c b/drivers/usb/misc/auerswald.c index 309c743a09d5..093938697426 100644 --- a/drivers/usb/misc/auerswald.c +++ b/drivers/usb/misc/auerswald.c | |||
@@ -284,7 +284,7 @@ static void auerchain_complete (struct urb * urb) | |||
284 | int result; | 284 | int result; |
285 | 285 | ||
286 | /* get pointer to element and to chain */ | 286 | /* get pointer to element and to chain */ |
287 | pauerchainelement_t acep = (pauerchainelement_t) urb->context; | 287 | pauerchainelement_t acep = urb->context; |
288 | pauerchain_t acp = acep->chain; | 288 | pauerchain_t acp = acep->chain; |
289 | 289 | ||
290 | /* restore original entries in urb */ | 290 | /* restore original entries in urb */ |
@@ -594,7 +594,7 @@ ac_fail:/* free the elements */ | |||
594 | /* completion handler for synchronous chained URBs */ | 594 | /* completion handler for synchronous chained URBs */ |
595 | static void auerchain_blocking_completion (struct urb *urb) | 595 | static void auerchain_blocking_completion (struct urb *urb) |
596 | { | 596 | { |
597 | pauerchain_chs_t pchs = (pauerchain_chs_t)urb->context; | 597 | pauerchain_chs_t pchs = urb->context; |
598 | pchs->done = 1; | 598 | pchs->done = 1; |
599 | wmb(); | 599 | wmb(); |
600 | wake_up (&pchs->wqh); | 600 | wake_up (&pchs->wqh); |
@@ -847,7 +847,7 @@ static int auerswald_status_retry (int status) | |||
847 | /* Completion of asynchronous write block */ | 847 | /* Completion of asynchronous write block */ |
848 | static void auerchar_ctrlwrite_complete (struct urb * urb) | 848 | static void auerchar_ctrlwrite_complete (struct urb * urb) |
849 | { | 849 | { |
850 | pauerbuf_t bp = (pauerbuf_t) urb->context; | 850 | pauerbuf_t bp = urb->context; |
851 | pauerswald_t cp = ((pauerswald_t)((char *)(bp->list)-(unsigned long)(&((pauerswald_t)0)->bufctl))); | 851 | pauerswald_t cp = ((pauerswald_t)((char *)(bp->list)-(unsigned long)(&((pauerswald_t)0)->bufctl))); |
852 | dbg ("auerchar_ctrlwrite_complete called"); | 852 | dbg ("auerchar_ctrlwrite_complete called"); |
853 | 853 | ||
@@ -860,7 +860,7 @@ static void auerchar_ctrlwrite_complete (struct urb * urb) | |||
860 | /* Completion handler for dummy retry packet */ | 860 | /* Completion handler for dummy retry packet */ |
861 | static void auerswald_ctrlread_wretcomplete (struct urb * urb) | 861 | static void auerswald_ctrlread_wretcomplete (struct urb * urb) |
862 | { | 862 | { |
863 | pauerbuf_t bp = (pauerbuf_t) urb->context; | 863 | pauerbuf_t bp = urb->context; |
864 | pauerswald_t cp; | 864 | pauerswald_t cp; |
865 | int ret; | 865 | int ret; |
866 | int status = urb->status; | 866 | int status = urb->status; |
@@ -904,7 +904,7 @@ static void auerswald_ctrlread_complete (struct urb * urb) | |||
904 | unsigned int serviceid; | 904 | unsigned int serviceid; |
905 | pauerswald_t cp; | 905 | pauerswald_t cp; |
906 | pauerscon_t scp; | 906 | pauerscon_t scp; |
907 | pauerbuf_t bp = (pauerbuf_t) urb->context; | 907 | pauerbuf_t bp = urb->context; |
908 | int status = urb->status; | 908 | int status = urb->status; |
909 | int ret; | 909 | int ret; |
910 | 910 | ||
@@ -981,7 +981,7 @@ static void auerswald_int_complete (struct urb * urb) | |||
981 | int ret; | 981 | int ret; |
982 | int status = urb->status; | 982 | int status = urb->status; |
983 | pauerbuf_t bp = NULL; | 983 | pauerbuf_t bp = NULL; |
984 | pauerswald_t cp = (pauerswald_t) urb->context; | 984 | pauerswald_t cp = urb->context; |
985 | 985 | ||
986 | dbg ("%s called", __func__); | 986 | dbg ("%s called", __func__); |
987 | 987 | ||