From a0d92cda05f5a962df0ed4be551fd1de955cdea2 Mon Sep 17 00:00:00 2001 From: a17671 Date: Tue, 8 Jan 2019 09:35:45 +0800 Subject: [PATCH] usb:f_midi:Correct the midi function name for binding The f_midi function name has to be midi Otherwise, the rc file will have problem of binding the function Change-Id: I2b3e61f70fb9b260731eabd5fe6bf10da72c540a Signed-off-by: a17671 Reviewed-on: https://gerrit.mot.com/1290747 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/usb/gadget/function/f_midi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_midi.c b/drivers/usb/gadget/function/f_midi.c index f0a8e66e7a9c..ec9895d83de9 100644 --- a/drivers/usb/gadget/function/f_midi.c +++ b/drivers/usb/gadget/function/f_midi.c @@ -1387,7 +1387,7 @@ static struct usb_function *f_midi_alloc(struct usb_function_instance *fi) ++opts->refcnt; mutex_unlock(&opts->lock); - midi->func.name = "gmidi function"; + midi->func.name = "midi"; midi->func.bind = f_midi_bind; midi->func.unbind = f_midi_unbind; midi->func.set_alt = f_midi_set_alt; -- 2.20.1