From: a17671 Date: Tue, 8 Jan 2019 01:35:45 +0000 (+0800) Subject: usb:f_midi:Correct the midi function name for binding X-Git-Tag: MMI-QSAS30.62-33-3~308 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0d92cda05f5a962df0ed4be551fd1de955cdea2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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;