Skip to content

Commit 3563c62

Browse files
jhovolddtor
authored andcommitted
Input: gtco - fix extra-descriptor debug message
Make sure to use the current altsetting when printing size of any extra descriptors of the interface. Also fix the s/endpoint/interface/ mixup in the message itself. Signed-off-by: Johan Hovold <[email protected]> Acked-by: Vladis Dronov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent a8eeb74 commit 3563c62

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/tablet/gtco.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,8 @@ static int gtco_probe(struct usb_interface *usbinterface,
892892
if (usb_endpoint_xfer_int(endpoint))
893893
dev_dbg(&usbinterface->dev, "endpoint: we have interrupt endpoint\n");
894894

895-
dev_dbg(&usbinterface->dev, "endpoint extra len:%d\n", usbinterface->altsetting[0].extralen);
895+
dev_dbg(&usbinterface->dev, "interface extra len:%d\n",
896+
usbinterface->cur_altsetting->extralen);
896897

897898
/*
898899
* Find the HID descriptor so we can find out the size of the

0 commit comments

Comments
 (0)