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 <johan@kernel.org> Acked-by: Vladis Dronov <vdronov@redhat.com> Link: https://lore.kernel.org/r/20191210113737.4016-6-johan@kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent a8eeb74 commit 3563c62

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)