diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-04-18 08:43:25 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-04-23 07:12:02 -0400 |
commit | 9890e33013fae0d67cd385d2038fcab4e52a6632 (patch) | |
tree | 37fa2ab4b230502e2321b5770dc7121b8374c15f | |
parent | 8d6f51bda67bb68b33ed4a48c57b0904a3395301 (diff) |
usb: gadget: f_sourcesink.c: correct a copy-paste misnomer
acm was the first function to be converted and it seems that its
code served as a base for converting f_sourcesink to the new function
interface. source_sink has nothing to do with acm, though.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/f_sourcesink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/f_sourcesink.c b/drivers/usb/gadget/f_sourcesink.c index 41adf3ef96c2..a8895859a221 100644 --- a/drivers/usb/gadget/f_sourcesink.c +++ b/drivers/usb/gadget/f_sourcesink.c | |||
@@ -898,7 +898,7 @@ static struct usb_function *source_sink_alloc_func( | |||
898 | return &ss->function; | 898 | return &ss->function; |
899 | } | 899 | } |
900 | 900 | ||
901 | static void acm_free_instance(struct usb_function_instance *fi) | 901 | static void source_sink_free_instance(struct usb_function_instance *fi) |
902 | { | 902 | { |
903 | struct f_ss_opts *ss_opts; | 903 | struct f_ss_opts *ss_opts; |
904 | 904 | ||
@@ -913,7 +913,7 @@ static struct usb_function_instance *source_sink_alloc_inst(void) | |||
913 | ss_opts = kzalloc(sizeof(*ss_opts), GFP_KERNEL); | 913 | ss_opts = kzalloc(sizeof(*ss_opts), GFP_KERNEL); |
914 | if (!ss_opts) | 914 | if (!ss_opts) |
915 | return ERR_PTR(-ENOMEM); | 915 | return ERR_PTR(-ENOMEM); |
916 | ss_opts->func_inst.free_func_inst = acm_free_instance; | 916 | ss_opts->func_inst.free_func_inst = source_sink_free_instance; |
917 | return &ss_opts->func_inst; | 917 | return &ss_opts->func_inst; |
918 | } | 918 | } |
919 | DECLARE_USB_FUNCTION(SourceSink, source_sink_alloc_inst, | 919 | DECLARE_USB_FUNCTION(SourceSink, source_sink_alloc_inst, |