]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: vt6656: Remove function vnt_int_process_data.
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 2 Mar 2020 21:16:23 +0000 (21:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 06:52:32 +0000 (07:52 +0100)
call vnt_start_interrupt_urb directly from vnt_start.

Move debug message to vnt_start_interrupt_urb.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/dff3a1d0-4d24-d9ea-2a15-c81fd544bc79@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/int.c
drivers/staging/vt6656/int.h
drivers/staging/vt6656/main_usb.c
drivers/staging/vt6656/usbpipe.c

index fcf92cd1234b76dc73939651ebf27bf87d64a476..139be3f845c310de93ccefe6dc57ddac8229b61d 100644 (file)
 #include "power.h"
 #include "usbpipe.h"
 
-int vnt_int_start_interrupt(struct vnt_private *priv)
-{
-       int ret = 0;
-
-       dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n");
-
-       ret = vnt_start_interrupt_urb(priv);
-
-       return ret;
-}
-
 static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr)
 {
        struct vnt_usb_send_context *context;
index 8a6d60569ceb55b668ecc82b5920ef667eb4b626..0b7473a7f1902517226a3ae88f905632a56f251f 100644 (file)
@@ -41,7 +41,6 @@ struct vnt_interrupt_data {
        u8 sw[2];
 } __packed;
 
-int vnt_int_start_interrupt(struct vnt_private *priv);
 void vnt_int_process_data(struct vnt_private *priv);
 
 #endif /* __INT_H__ */
index 9135aad0863d76c221b8cce4db908e0b1c577082..a22f88b1f5e9d45f223910200013cc7281709a8c 100644 (file)
@@ -549,7 +549,7 @@ static int vnt_start(struct ieee80211_hw *hw)
 
        priv->int_interval = 1;  /* bInterval is set to 1 */
 
-       ret = vnt_int_start_interrupt(priv);
+       ret = vnt_start_interrupt_urb(priv);
        if (ret)
                goto free_all;
 
index e93c2175543f3f58e31ce4da70838953996c1ff8..0e29dc2f4b0df17aad3d89dfec57ffba1636303e 100644 (file)
@@ -176,6 +176,8 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
 {
        int ret = 0;
 
+       dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n");
+
        if (priv->int_buf.in_use) {
                ret = -EBUSY;
                goto err;