projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e235f7b
)
usb: gadget: uvc: use explicit type instead of void *
author
Andrzej Pietrasiewicz
<
[email protected]
>
Mon, 19 Jan 2015 12:52:57 +0000
(13:52 +0100)
committer
Felipe Balbi
<
[email protected]
>
Tue, 27 Jan 2015 16:00:21 +0000
(10:00 -0600)
The first parameter of __uvcg_iter_strm_cls() is always used in
the context of struct uvcg_streaming_header, so change the
function prototype accordingly.
Acked-by: Laurent Pinchart <
[email protected]
>
Signed-off-by: Andrzej Pietrasiewicz <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/gadget/function/uvc_configfs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/uvc_configfs.c
b/drivers/usb/gadget/function/uvc_configfs.c
index 49f25e806e386fd1b83ed9cadade9c1b3a4a1747..51d8e9ee5323b2db523358da855d9000efae697e 100644
(file)
--- a/
drivers/usb/gadget/function/uvc_configfs.c
+++ b/
drivers/usb/gadget/function/uvc_configfs.c
@@
-1918,10
+1918,10
@@
enum uvcg_strm_type {
UVCG_FRAME
};
-static int __uvcg_iter_strm_cls(void *priv1, void *priv2, void *priv3,
+static int __uvcg_iter_strm_cls(struct uvcg_streaming_header *h,
+ void *priv2, void *priv3,
int (*fun)(void *, void *, void *, int, enum uvcg_strm_type type))
{
- struct uvcg_streaming_header *h = priv1;
struct uvcg_format_ptr *f;
struct config_group *grp;
struct config_item *item;