mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb: core: pass usb_get_status() 'type' argument to usb_control_msg()
@ 2022-11-02  4:58 Daewoong Kim
  2022-11-02  5:16 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Daewoong Kim @ 2022-11-02  4:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-usb, linux-kernel

In the commit 2e43f0fe379c
("usb: core: add a 'type' parameter to usb_get_status()"), the 'type'
parameter was added. It should be passed to usb_control_msg() as an
argument.

Signed-off-by: Daewoong Kim <daewoong00.kim@gmail.com>
---
 drivers/usb/core/message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 4d59d927ae3e..a81f23d81480 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -1150,7 +1150,7 @@ int usb_get_status(struct usb_device *dev, int recip, int type, int target,
 		return -ENOMEM;
 
 	ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
-		USB_REQ_GET_STATUS, USB_DIR_IN | recip, USB_STATUS_TYPE_STANDARD,
+		USB_REQ_GET_STATUS, USB_DIR_IN | recip, type,
 		target, status, length, USB_CTRL_GET_TIMEOUT);
 
 	switch (ret) {
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-02  5:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02  4:58 [PATCH] usb: core: pass usb_get_status() 'type' argument to usb_control_msg() Daewoong Kim
2022-11-02  5:16 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome