diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-10 12:00:41 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-01-10 14:42:58 -0800 |
commit | 3563c629fb9a29b08df53747217b89444f4cd32b (patch) | |
tree | 9c3b7920d247dfe38d06b4951656266357471127 /drivers/input | |
parent | a8eeb74df5a6bdb214b2b581b14782c5f5a0cf83 (diff) | |
download | linux-3563c629fb9a29b08df53747217b89444f4cd32b.tar.gz linux-3563c629fb9a29b08df53747217b89444f4cd32b.tar.bz2 linux-3563c629fb9a29b08df53747217b89444f4cd32b.zip |
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/tablet/gtco.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index 799c94dda651..eef5946a6ba4 100644 --- a/drivers/input/tablet/gtco.c +++ b/drivers/input/tablet/gtco.c @@ -892,7 +892,8 @@ static int gtco_probe(struct usb_interface *usbinterface, if (usb_endpoint_xfer_int(endpoint)) dev_dbg(&usbinterface->dev, "endpoint: we have interrupt endpoint\n"); - dev_dbg(&usbinterface->dev, "endpoint extra len:%d\n", usbinterface->altsetting[0].extralen); + dev_dbg(&usbinterface->dev, "interface extra len:%d\n", + usbinterface->cur_altsetting->extralen); /* * Find the HID descriptor so we can find out the size of the |