Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235904
b: refs/heads/master
c: 537a20a
h: refs/heads/master
v: v3
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Feb 9, 2011
1 parent bac6e37 commit 837eeee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 31 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: aa72eb0778be48edfeacc51c24c9617f1a1947b5
refs/heads/master: 537a20aba6127a048fbb15ce31cc824fb879a132
41 changes: 11 additions & 30 deletions trunk/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,45 +65,26 @@ static u8 tempbuffer[1600];
// Notes:
//
//---------------------------------------------------------------------------
static int ft1000_control(struct ft1000_device *ft1000dev,unsigned int pipe,
u8 request,
u8 requesttype,
u16 value,
u16 index,
void *data,
u16 size,
int timeout)
static int ft1000_control(struct ft1000_device *ft1000dev, unsigned int pipe,
u8 request, u8 requesttype, u16 value, u16 index,
void *data, u16 size, int timeout)
{
u16 ret;

if (ft1000dev == NULL )
{
DEBUG("NULL ft1000dev, failure\n");
return -ENODEV;
}
else if ( ft1000dev->dev == NULL )
{
DEBUG("NULL ft1000dev->dev, failure\n");
return -ENODEV;
}
if ((ft1000dev == NULL) || (ft1000dev->dev == NULL)) {
DEBUG("ft1000dev or ft1000dev->dev == NULL, failure\n");
return -ENODEV;
}

ret = usb_control_msg(ft1000dev->dev,
pipe,
request,
requesttype,
value,
index,
data,
size,
LARGE_TIMEOUT);
ret = usb_control_msg(ft1000dev->dev, pipe, request, requesttype,
value, index, data, size, LARGE_TIMEOUT);

if (ret > 0)
ret = 0;

return ret;


return ret;
}

//---------------------------------------------------------------------------
// Function: ft1000_read_register
//
Expand Down

0 comments on commit 837eeee

Please sign in to comment.