Commit 05f665dd authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: Remove function vnt_int_process_data.

call vnt_start_interrupt_urb directly from vnt_start.

Move debug message to vnt_start_interrupt_urb.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/dff3a1d0-4d24-d9ea-2a15-c81fd544bc79@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0fd349fd
...@@ -23,17 +23,6 @@ ...@@ -23,17 +23,6 @@
#include "power.h" #include "power.h"
#include "usbpipe.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) static int vnt_int_report_rate(struct vnt_private *priv, u8 pkt_no, u8 tsr)
{ {
struct vnt_usb_send_context *context; struct vnt_usb_send_context *context;
......
...@@ -41,7 +41,6 @@ struct vnt_interrupt_data { ...@@ -41,7 +41,6 @@ struct vnt_interrupt_data {
u8 sw[2]; u8 sw[2];
} __packed; } __packed;
int vnt_int_start_interrupt(struct vnt_private *priv);
void vnt_int_process_data(struct vnt_private *priv); void vnt_int_process_data(struct vnt_private *priv);
#endif /* __INT_H__ */ #endif /* __INT_H__ */
...@@ -549,7 +549,7 @@ static int vnt_start(struct ieee80211_hw *hw) ...@@ -549,7 +549,7 @@ static int vnt_start(struct ieee80211_hw *hw)
priv->int_interval = 1; /* bInterval is set to 1 */ priv->int_interval = 1; /* bInterval is set to 1 */
ret = vnt_int_start_interrupt(priv); ret = vnt_start_interrupt_urb(priv);
if (ret) if (ret)
goto free_all; goto free_all;
......
...@@ -176,6 +176,8 @@ int vnt_start_interrupt_urb(struct vnt_private *priv) ...@@ -176,6 +176,8 @@ int vnt_start_interrupt_urb(struct vnt_private *priv)
{ {
int ret = 0; int ret = 0;
dev_dbg(&priv->usb->dev, "---->Interrupt Polling Thread\n");
if (priv->int_buf.in_use) { if (priv->int_buf.in_use) {
ret = -EBUSY; ret = -EBUSY;
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment