]> git.hungrycats.org Git - linux/commitdiff
usb: gadget: Fix copy/pasted error message
authorDavid Lechner <david@lechnology.com>
Mon, 2 Jan 2017 23:28:39 +0000 (17:28 -0600)
committerSasha Levin <alexander.levin@verizon.com>
Sun, 10 Sep 2017 20:35:55 +0000 (16:35 -0400)
[ Upstream commit 43aef5c2ca90535b3227e97e71604291875444ed ]

This fixes an error message that was probably copied and pasted. The same
message is used for both the in and out endpoints, so it makes it impossible
to know which one actually failed because both cases say "IN".

Make the out endpoint error message say "OUT".

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/gadget/function/f_hid.c

index f7f35a36c09a06eab17ef2e5af013ee3de2b5b8e..466640afa7be5e6e673dcb36d0f4cb7825cd4811 100644 (file)
@@ -544,7 +544,7 @@ static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
                }
                status = usb_ep_enable(hidg->out_ep);
                if (status < 0) {
-                       ERROR(cdev, "Enable IN endpoint FAILED!\n");
+                       ERROR(cdev, "Enable OUT endpoint FAILED!\n");
                        goto fail;
                }
                hidg->out_ep->driver_data = hidg;