Merge commit '818299f6bdae' into android-exynos-4.14-ww-9610-minor_up-dev
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / include / linux / usb / composite.h
index 9baea7b8e1b10084b41cdb34c5506a591f572500..ae33f881db5957eda2d2c492682c2d9ecc98e4c3 100644 (file)
@@ -214,6 +214,12 @@ struct usb_function {
        void                    (*free_func)(struct usb_function *f);
        struct module           *mod;
 
+#ifdef CONFIG_USB_CONFIGFS_UEVENT
+       /* Optional function for vendor specific processing */
+       int                     (*ctrlrequest)(struct usb_function *,
+                                       const struct usb_ctrlrequest *);
+#endif
+
        /* runtime state management */
        int                     (*set_alt)(struct usb_function *,
                                        unsigned interface, unsigned alt);