Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23638
b: refs/heads/master
c: ae62e3d
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Mar 24, 2006
1 parent 9c5635a commit e6d6bfb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 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: 4d6e772d989c11af7d7e41095f976cff5eeb43f3
refs/heads/master: ae62e3d4a8194680023b47ab778bf1dcea8d6b42
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/dvb-usb/cxusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num)
break;

if (ibuf[0] != 0x08)
deb_info("i2c read may have failed\n");
deb_i2c("i2c read may have failed\n");

memcpy(msg[i+1].buf,&ibuf[1],msg[i+1].len);

Expand All @@ -123,7 +123,7 @@ static int cxusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num)
if (cxusb_ctrl_msg(d,CMD_I2C_WRITE, obuf, 2+msg[i].len, &ibuf,1) < 0)
break;
if (ibuf != 0x08)
deb_info("i2c write may have failed\n");
deb_i2c("i2c write may have failed\n");
}
}

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/media/dvb/dvb-usb/cxusb.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

extern int dvb_usb_cxusb_debug;
#define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args)
#define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \
dprintk(dvb_usb_cxusb_debug,0x01,args)

/* usb commands - some of it are guesses, don't have a reference yet */
#define CMD_I2C_WRITE 0x08
Expand Down

0 comments on commit e6d6bfb

Please sign in to comment.