usb:f_midi:Correct the midi function name for binding
authora17671 <a17671@motorola.com>
Tue, 8 Jan 2019 01:35:45 +0000 (09:35 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:31 +0000 (17:30 +0800)
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 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1290747
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/usb/gadget/function/f_midi.c

index f0a8e66e7a9cb7174de6f429bc5818c5f287d590..ec9895d83de91e83827b2b2a2f131779cb9d8fc4 100644 (file)
@@ -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;