|
27 | 27 |
|
28 | 28 | MODULE_SUPPORTED_DEVICE("PEAK-System PCAN-USB Pro adapter");
|
29 | 29 |
|
30 |
| -/* PCAN-USB Pro Endpoints */ |
31 |
| -#define PCAN_USBPRO_EP_CMDOUT 1 |
32 |
| -#define PCAN_USBPRO_EP_CMDIN (PCAN_USBPRO_EP_CMDOUT | USB_DIR_IN) |
33 |
| -#define PCAN_USBPRO_EP_MSGOUT_0 2 |
34 |
| -#define PCAN_USBPRO_EP_MSGIN (PCAN_USBPRO_EP_MSGOUT_0 | USB_DIR_IN) |
35 |
| -#define PCAN_USBPRO_EP_MSGOUT_1 3 |
36 |
| -#define PCAN_USBPRO_EP_UNUSED (PCAN_USBPRO_EP_MSGOUT_1 | USB_DIR_IN) |
37 |
| - |
38 | 30 | #define PCAN_USBPRO_CHANNEL_COUNT 2
|
39 | 31 |
|
40 | 32 | /* PCAN-USB Pro adapter internal clock (MHz) */
|
@@ -322,8 +314,8 @@ static int pcan_usb_pro_wait_rsp(struct peak_usb_device *dev,
|
322 | 314 | return (i >= PCAN_USBPRO_RSP_SUBMIT_MAX) ? -ERANGE : err;
|
323 | 315 | }
|
324 | 316 |
|
325 |
| -static int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id, |
326 |
| - int req_value, void *req_addr, int req_size) |
| 317 | +int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id, |
| 318 | + int req_value, void *req_addr, int req_size) |
327 | 319 | {
|
328 | 320 | int err;
|
329 | 321 | u8 req_type;
|
@@ -475,7 +467,7 @@ static int pcan_usb_pro_set_bittiming(struct peak_usb_device *dev,
|
475 | 467 | return pcan_usb_pro_set_bitrate(dev, ccbt);
|
476 | 468 | }
|
477 | 469 |
|
478 |
| -static void pcan_usb_pro_restart_complete(struct urb *urb) |
| 470 | +void pcan_usb_pro_restart_complete(struct urb *urb) |
479 | 471 | {
|
480 | 472 | /* can delete usb resources */
|
481 | 473 | peak_usb_async_complete(urb);
|
@@ -978,7 +970,7 @@ static void pcan_usb_pro_free(struct peak_usb_device *dev)
|
978 | 970 | /*
|
979 | 971 | * probe function for new PCAN-USB Pro usb interface
|
980 | 972 | */
|
981 |
| -static int pcan_usb_pro_probe(struct usb_interface *intf) |
| 973 | +int pcan_usb_pro_probe(struct usb_interface *intf) |
982 | 974 | {
|
983 | 975 | struct usb_host_interface *if_desc;
|
984 | 976 | int i;
|
|
0 commit comments