Skip to contentSkip to conversation

usb: gadget: uvc: fix UVC_ATTR macro for UVCG_OPTS_ATTR

PATCH New Jassi Brar 1 participant 1 message Dec 11, 2016

Subsystems (3)
lore
Share & tools
lore

Jassi Brar

author
#0 lore raw

PATCH 1/1 usb: gadget: uvc: fix UVC_ATTR macro for UVCG_OPTS_ATTR

From: Jassi Brar <[email protected]>

Fix a typo bug that prevents creation of streaming_{interval,maxpacket,maxburst} nodes for invalid 'aname' node.

Fixes 76e0da34 ("usb-gadget/uvc: use per-attribute show and store methods")
---
 drivers/usb/gadget/function/uvc_configfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/function/uvc_configfs.c +1 -1
index ecb5614..158849e 100644
@@ -2245,7 +2245,7 @@ end:									\
 	return ret;							\
 }									\
 									\
-UVC_ATTR(f_uvc_opts_, cname, aname)
+UVC_ATTR(f_uvc_opts_, cname, cname)
 
 #define identity_conv(x) (x)
 
Signature · 1 line
2.7.4