diff options
Diffstat (limited to 'include/linux/usb_usual.h')
| -rw-r--r-- | include/linux/usb_usual.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/usb_usual.h b/include/linux/usb_usual.h index e84e769aaddc..bf99cd01be20 100644 --- a/include/linux/usb_usual.h +++ b/include/linux/usb_usual.h | |||
| @@ -72,33 +72,9 @@ | |||
| 72 | enum { US_DO_ALL_FLAGS }; | 72 | enum { US_DO_ALL_FLAGS }; |
| 73 | #undef US_FLAG | 73 | #undef US_FLAG |
| 74 | 74 | ||
| 75 | /* | ||
| 76 | * The bias field for libusual and friends. | ||
| 77 | */ | ||
| 78 | #define USB_US_TYPE_NONE 0 | ||
| 79 | #define USB_US_TYPE_STOR 1 /* usb-storage */ | ||
| 80 | #define USB_US_TYPE_UB 2 /* ub */ | ||
| 81 | |||
| 82 | #define USB_US_TYPE(flags) (((flags) >> 24) & 0xFF) | ||
| 83 | #define USB_US_ORIG_FLAGS(flags) ((flags) & 0x00FFFFFF) | ||
| 84 | |||
| 85 | #include <linux/usb/storage.h> | 75 | #include <linux/usb/storage.h> |
| 86 | 76 | ||
| 87 | /* | ||
| 88 | */ | ||
| 89 | extern int usb_usual_ignore_device(struct usb_interface *intf); | 77 | extern int usb_usual_ignore_device(struct usb_interface *intf); |
| 90 | extern struct usb_device_id usb_storage_usb_ids[]; | 78 | extern struct usb_device_id usb_storage_usb_ids[]; |
| 91 | 79 | ||
| 92 | #ifdef CONFIG_USB_LIBUSUAL | ||
| 93 | |||
| 94 | extern void usb_usual_set_present(int type); | ||
| 95 | extern void usb_usual_clear_present(int type); | ||
| 96 | extern int usb_usual_check_type(const struct usb_device_id *, int type); | ||
| 97 | #else | ||
| 98 | |||
| 99 | #define usb_usual_set_present(t) do { } while(0) | ||
| 100 | #define usb_usual_clear_present(t) do { } while(0) | ||
| 101 | #define usb_usual_check_type(id, t) (0) | ||
| 102 | #endif /* CONFIG_USB_LIBUSUAL */ | ||
| 103 | |||
| 104 | #endif /* __LINUX_USB_USUAL_H */ | 80 | #endif /* __LINUX_USB_USUAL_H */ |
