When configfs is integrated, to_f_uvc_opts() is expected to be defined
with struct config_item pointer as argument. to_f_uvc_opts() in u_uvc.h
takes a different argument, so rename it to avoid conflicts.

Signed-off-by: Andrzej Pietrasiewicz <andrze...@samsung.com>
---
 drivers/usb/gadget/function/f_uvc.c | 6 +++---
 drivers/usb/gadget/function/u_uvc.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/function/f_uvc.c 
b/drivers/usb/gadget/function/f_uvc.c
index ff7ee02..9d22928 100644
--- a/drivers/usb/gadget/function/f_uvc.c
+++ b/drivers/usb/gadget/function/f_uvc.c
@@ -563,7 +563,7 @@ uvc_function_bind(struct usb_configuration *c, struct 
usb_function *f)
 
        INFO(cdev, "uvc_function_bind\n");
 
-       opts = to_f_uvc_opts(f->fi);
+       opts = fi_to_f_uvc_opts(f->fi);
        /* Sanity check the streaming endpoint module parameters.
         */
        opts->streaming_interval = clamp(opts->streaming_interval, 1U, 16U);
@@ -723,7 +723,7 @@ error:
 
 static void uvc_free_inst(struct usb_function_instance *f)
 {
-       struct f_uvc_opts *opts = to_f_uvc_opts(f);
+       struct f_uvc_opts *opts = fi_to_f_uvc_opts(f);
 
        kfree(opts);
 }
@@ -775,7 +775,7 @@ struct usb_function *uvc_alloc(struct usb_function_instance 
*fi)
                return ERR_PTR(-ENOMEM);
 
        uvc->state = UVC_STATE_DISCONNECTED;
-       opts = to_f_uvc_opts(fi);
+       opts = fi_to_f_uvc_opts(fi);
 
        uvc->desc.fs_control = opts->fs_control;
        uvc->desc.ss_control = opts->ss_control;
diff --git a/drivers/usb/gadget/function/u_uvc.h 
b/drivers/usb/gadget/function/u_uvc.h
index 93bd371..9307bd8 100644
--- a/drivers/usb/gadget/function/u_uvc.h
+++ b/drivers/usb/gadget/function/u_uvc.h
@@ -18,7 +18,7 @@
 
 #include <linux/usb/composite.h>
 
-#define to_f_uvc_opts(f)       container_of(f, struct f_uvc_opts, func_inst)
+#define fi_to_f_uvc_opts(f)    container_of(f, struct f_uvc_opts, func_inst)
 
 struct f_uvc_opts {
        struct usb_function_instance                    func_inst;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to