Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261205
b: refs/heads/master
c: d294093
h: refs/heads/master
i:
  261203: d30187e
v: v3
  • Loading branch information
Hans Petter Selasky authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent f2dc63a commit 5baa1a0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 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: a5bef1d25212107b867f0161fdc2b7bf1b260cbd
refs/heads/master: d294093010c86294baaaa414a412ea117bacd8fc
20 changes: 10 additions & 10 deletions trunk/drivers/media/dvb/frontends/cx24113.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@

static int debug;

#define info(args...) do { printk(KERN_INFO "CX24113: " args); } while (0)
#define err(args...) do { printk(KERN_ERR "CX24113: " args); } while (0)
#define cx_info(args...) do { printk(KERN_INFO "CX24113: " args); } while (0)
#define cx_err(args...) do { printk(KERN_ERR "CX24113: " args); } while (0)

#define dprintk(args...) \
do { \
Expand Down Expand Up @@ -341,7 +341,7 @@ static void cx24113_calc_pll_nf(struct cx24113_state *state, u16 *n, s32 *f)
} while (N < 6 && R < 3);

if (N < 6) {
err("strange frequency: N < 6\n");
cx_err("strange frequency: N < 6\n");
return;
}
F = freq_hz;
Expand Down Expand Up @@ -563,40 +563,40 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe,
kzalloc(sizeof(struct cx24113_state), GFP_KERNEL);
int rc;
if (state == NULL) {
err("Unable to kzalloc\n");
cx_err("Unable to kzalloc\n");
goto error;
}

/* setup the state */
state->config = config;
state->i2c = i2c;

info("trying to detect myself\n");
cx_info("trying to detect myself\n");

/* making a dummy read, because of some expected troubles
* after power on */
cx24113_readreg(state, 0x00);

rc = cx24113_readreg(state, 0x00);
if (rc < 0) {
info("CX24113 not found.\n");
cx_info("CX24113 not found.\n");
goto error;
}
state->rev = rc;

switch (rc) {
case 0x43:
info("detected CX24113 variant\n");
cx_info("detected CX24113 variant\n");
break;
case REV_CX24113:
info("successfully detected\n");
cx_info("successfully detected\n");
break;
default:
err("unsupported device id: %x\n", state->rev);
cx_err("unsupported device id: %x\n", state->rev);
goto error;
}
state->ver = cx24113_readreg(state, 0x01);
info("version: %x\n", state->ver);
cx_info("version: %x\n", state->ver);

/* create dvb_frontend */
memcpy(&fe->ops.tuner_ops, &cx24113_tuner_ops,
Expand Down

0 comments on commit 5baa1a0

Please sign in to comment.