Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261225
b: refs/heads/master
c: 02dec50
h: refs/heads/master
i:
  261223: bd18152
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 558eaa0 commit d78ba8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 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: 6bf60d56b36d7d4d0bdfb2996d56b064923ea541
refs/heads/master: 02dec509825dd5cb9f4bfa0526c75c0a7c20348a
26 changes: 0 additions & 26 deletions trunk/drivers/media/common/tuners/xc4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ struct xc4000_priv {
#define XREG_SNR 0x06
#define XREG_VERSION 0x07
#define XREG_PRODUCT_ID 0x08
//#define XREG_BUSY 0x09
//#define XREG_BUILD 0x0D

/*
Expand Down Expand Up @@ -310,38 +309,13 @@ static int xc4000_TunerReset(struct dvb_frontend *fe)
static int xc_write_reg(struct xc4000_priv *priv, u16 regAddr, u16 i2cData)
{
u8 buf[4];
// int WatchDogTimer = 100;
int result;

buf[0] = (regAddr >> 8) & 0xFF;
buf[1] = regAddr & 0xFF;
buf[2] = (i2cData >> 8) & 0xFF;
buf[3] = i2cData & 0xFF;
result = xc_send_i2c_data(priv, buf, 4);
//WAS THERE
// if (result == XC_RESULT_SUCCESS) {
// /* wait for busy flag to clear */
// while ((WatchDogTimer > 0) && (result == XC_RESULT_SUCCESS)) {
// buf[0] = 0;
// buf[1] = XREG_BUSY;
//
// result = xc_send_i2c_data(priv, buf, 2);
// if (result == XC_RESULT_SUCCESS) {
// result = xc_read_i2c_data(priv, buf, 2);
// if (result == XC_RESULT_SUCCESS) {
// if ((buf[0] == 0) && (buf[1] == 0)) {
// /* busy flag cleared */
// break;
// } else {
// xc_wait(5); /* wait 5 ms */
// WatchDogTimer--;
// }
// }
// }
// }
// }
// if (WatchDogTimer < 0)
// result = XC_RESULT_I2C_WRITE_FAILURE;

return result;
}
Expand Down

0 comments on commit d78ba8c

Please sign in to comment.