Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228238
b: refs/heads/master
c: 2894c6c
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Greg Kroah-Hartman committed Dec 1, 2010
1 parent a969d27 commit d48bd1c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 33 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9be98819d31c4e105ad028ee092d27a46a9e298a
refs/heads/master: 2894c6cd0ea84c30fc028ba92f8e61fbe7971e65
12 changes: 6 additions & 6 deletions trunk/drivers/staging/winbond/wb35reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ unsigned char Wb35Reg_WriteSync(struct hw_data *pHwData, u16 RegisterNo, u32 Reg

/* Sync IoCallDriver */
reg->EP0vm_state = VM_RUNNING;
ret = usb_control_msg(pHwData->WbUsb.udev,
usb_sndctrlpipe(pHwData->WbUsb.udev, 0),
ret = usb_control_msg(pHwData->udev,
usb_sndctrlpipe(pHwData->udev, 0),
0x03, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT,
0x0, RegisterNo, &RegisterValue, 4, HZ * 100);
reg->EP0vm_state = VM_STOP;
Expand Down Expand Up @@ -302,8 +302,8 @@ unsigned char Wb35Reg_ReadSync(struct hw_data *pHwData, u16 RegisterNo, u32 *pRe
msleep(10);

reg->EP0vm_state = VM_RUNNING;
ret = usb_control_msg(pHwData->WbUsb.udev,
usb_rcvctrlpipe(pHwData->WbUsb.udev, 0),
ret = usb_control_msg(pHwData->udev,
usb_rcvctrlpipe(pHwData->udev, 0),
0x01, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_IN,
0x0, RegisterNo, pltmp, 4, HZ * 100);

Expand Down Expand Up @@ -427,8 +427,8 @@ void Wb35Reg_EP0VM(struct hw_data *pHwData)
if (reg_queue->DIRECT == 1) /* output */
pBuffer = &reg_queue->VALUE;

usb_fill_control_urb(urb, pHwData->WbUsb.udev,
REG_DIRECTION(pHwData->WbUsb.udev, reg_queue),
usb_fill_control_urb(urb, pHwData->udev,
REG_DIRECTION(pHwData->udev, reg_queue),
(u8 *)dr, pBuffer, cpu_to_le16(dr->wLength),
Wb35Reg_EP0VM_complete, (void *)pHwData);

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/staging/winbond/wb35rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ static void Wb35Rx(struct ieee80211_hw *hw)
}
pRxBufferAddress = pWb35Rx->pDRx;

usb_fill_bulk_urb(urb, pHwData->WbUsb.udev,
usb_rcvbulkpipe(pHwData->WbUsb.udev, 3),
usb_fill_bulk_urb(urb, pHwData->udev,
usb_rcvbulkpipe(pHwData->udev, 3),
pRxBufferAddress, MAX_USB_RX_BUFFER,
Wb35Rx_Complete, hw);

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/winbond/wb35tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ static void Wb35Tx(struct wbsoft_priv *adapter)
//
// Issuing URB
//
usb_fill_bulk_urb(pUrb, pHwData->WbUsb.udev,
usb_sndbulkpipe(pHwData->WbUsb.udev, 4),
usb_fill_bulk_urb(pUrb, pHwData->udev,
usb_sndbulkpipe(pHwData->udev, 4),
pTxBufferAddress, pMds->TxBufferSize[ SendIndex ],
Wb35Tx_complete, adapter);

Expand Down Expand Up @@ -265,7 +265,7 @@ static void Wb35Tx_EP2VM(struct wbsoft_priv *adapter)
//
// Issuing URB
//
usb_fill_int_urb( pUrb, pHwData->WbUsb.udev, usb_rcvintpipe(pHwData->WbUsb.udev,2),
usb_fill_int_urb( pUrb, pHwData->udev, usb_rcvintpipe(pHwData->udev,2),
pltmp, MAX_INTERRUPT_LENGTH, Wb35Tx_EP2VM_complete, adapter, 32);

pWb35Tx->EP2vm_state = VM_RUNNING;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/winbond/wbhal.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ struct txvga_for_50 {
* ==============================================
*/

#include "wbusb_s.h"
#include "wb35reg_s.h"
#include "wb35tx_s.h"
#include "wb35rx_s.h"
Expand Down Expand Up @@ -437,7 +436,7 @@ struct hw_data {
* Variable for each module
* ==================================================
*/
struct wb_usb WbUsb; /* Need WbUsb.h */
struct usb_device *udev;
struct wb35_reg reg; /* Need Wb35Reg.h */
struct wb35_tx Wb35Tx; /* Need Wb35Tx.h */
struct wb35_rx Wb35Rx; /* Need Wb35Rx.h */
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/staging/winbond/wbusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,6 @@ static int wb35_probe(struct usb_interface *intf,
struct usb_host_interface *interface;
struct ieee80211_hw *dev;
struct wbsoft_priv *priv;
struct wb_usb *pWbUsb;
int nr, err;
u32 ltmp;

Expand Down Expand Up @@ -778,8 +777,7 @@ static int wb35_probe(struct usb_interface *intf,

priv = dev->priv;

pWbUsb = &priv->sHwData.WbUsb;
pWbUsb->udev = udev;
priv->sHwData.udev = udev;

interface = intf->cur_altsetting;
endpoint = &interface->endpoint[0].desc;
Expand Down
16 changes: 0 additions & 16 deletions trunk/drivers/staging/winbond/wbusb_s.h

This file was deleted.

0 comments on commit d48bd1c

Please sign in to comment.