Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186680
b: refs/heads/master
c: 8838d25
h: refs/heads/master
v: v3
  • Loading branch information
Ben Hutchings authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 330cb66 commit cff3d2b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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: 35f077dca73132dcac2cac1706417229a68f38c3
refs/heads/master: 8838d2560a8ccbc5e03688d55bf075793b36a04e
6 changes: 3 additions & 3 deletions trunk/drivers/staging/rt2860/rtmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4043,10 +4043,10 @@ int RTUSBMultiRead(struct rt_rtmp_adapter *pAd,
u16 Offset, u8 *pData, u16 length);

int RTUSBMultiWrite(struct rt_rtmp_adapter *pAd,
u16 Offset, u8 *pData, u16 length);
u16 Offset, const u8 *pData, u16 length);

int RTUSBMultiWrite_OneByte(struct rt_rtmp_adapter *pAd,
u16 Offset, u8 *pData);
u16 Offset, const u8 *pData);

int RTUSBReadBBPRegister(struct rt_rtmp_adapter *pAd,
u8 Id, u8 *pValue);
Expand Down Expand Up @@ -4112,7 +4112,7 @@ int RTUSBSingleWrite(struct rt_rtmp_adapter *pAd,
u16 Offset, u16 Value);

int RTUSBFirmwareWrite(struct rt_rtmp_adapter *pAd,
u8 *pFwImage, unsigned long FwLen);
const u8 *pFwImage, unsigned long FwLen);

int RTUSBVenderReset(struct rt_rtmp_adapter *pAd);

Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/rt2870/common/rtusb_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static int RTUSBFirmwareRun(struct rt_rtmp_adapter *pAd)
========================================================================
*/
int RTUSBFirmwareWrite(struct rt_rtmp_adapter *pAd,
u8 *pFwImage, unsigned long FwLen)
const u8 *pFwImage, unsigned long FwLen)
{
u32 MacReg;
int Status;
Expand Down Expand Up @@ -167,26 +167,26 @@ int RTUSBMultiRead(struct rt_rtmp_adapter *pAd,
========================================================================
*/
int RTUSBMultiWrite_OneByte(struct rt_rtmp_adapter *pAd,
u16 Offset, u8 *pData)
u16 Offset, const u8 *pData)
{
int Status;

/* TODO: In 2870, use this funciton carefully cause it's not stable. */
Status = RTUSB_VendorRequest(pAd,
USBD_TRANSFER_DIRECTION_OUT,
DEVICE_VENDOR_REQUEST_OUT,
0x6, 0, Offset, pData, 1);
0x6, 0, Offset, (u8 *)pData, 1);

return Status;
}

int RTUSBMultiWrite(struct rt_rtmp_adapter *pAd,
u16 Offset, u8 *pData, u16 length)
u16 Offset, const u8 *pData, u16 length)
{
int Status;

u16 index = 0, Value;
u8 *pSrc = pData;
const u8 *pSrc = pData;
u16 resude = 0;

resude = length % 2;
Expand Down

0 comments on commit cff3d2b

Please sign in to comment.