diff options
author | Hans Petter Selasky <hselasky@c2i.net> | 2011-05-23 07:42:40 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 16:52:22 -0400 |
commit | d294093010c86294baaaa414a412ea117bacd8fc (patch) | |
tree | 26b8b0b8b5ba375672010e4dda2efdfde9a09d6d | |
parent | a5bef1d25212107b867f0161fdc2b7bf1b260cbd (diff) |
[media] cx24113: Don't reuse core macro names
The info and err macros are already defined by the USB stack. Rename
these macros to avoid macro redefinition warnings.
Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/cx24113.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/cx24113.c b/drivers/media/dvb/frontends/cx24113.c index e9ee55592fd3..c341d57d5e81 100644 --- a/drivers/media/dvb/frontends/cx24113.c +++ b/drivers/media/dvb/frontends/cx24113.c | |||
@@ -31,8 +31,8 @@ | |||
31 | 31 | ||
32 | static int debug; | 32 | static int debug; |
33 | 33 | ||
34 | #define info(args...) do { printk(KERN_INFO "CX24113: " args); } while (0) | 34 | #define cx_info(args...) do { printk(KERN_INFO "CX24113: " args); } while (0) |
35 | #define err(args...) do { printk(KERN_ERR "CX24113: " args); } while (0) | 35 | #define cx_err(args...) do { printk(KERN_ERR "CX24113: " args); } while (0) |
36 | 36 | ||
37 | #define dprintk(args...) \ | 37 | #define dprintk(args...) \ |
38 | do { \ | 38 | do { \ |
@@ -341,7 +341,7 @@ static void cx24113_calc_pll_nf(struct cx24113_state *state, u16 *n, s32 *f) | |||
341 | } while (N < 6 && R < 3); | 341 | } while (N < 6 && R < 3); |
342 | 342 | ||
343 | if (N < 6) { | 343 | if (N < 6) { |
344 | err("strange frequency: N < 6\n"); | 344 | cx_err("strange frequency: N < 6\n"); |
345 | return; | 345 | return; |
346 | } | 346 | } |
347 | F = freq_hz; | 347 | F = freq_hz; |
@@ -563,7 +563,7 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, | |||
563 | kzalloc(sizeof(struct cx24113_state), GFP_KERNEL); | 563 | kzalloc(sizeof(struct cx24113_state), GFP_KERNEL); |
564 | int rc; | 564 | int rc; |
565 | if (state == NULL) { | 565 | if (state == NULL) { |
566 | err("Unable to kzalloc\n"); | 566 | cx_err("Unable to kzalloc\n"); |
567 | goto error; | 567 | goto error; |
568 | } | 568 | } |
569 | 569 | ||
@@ -571,7 +571,7 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, | |||
571 | state->config = config; | 571 | state->config = config; |
572 | state->i2c = i2c; | 572 | state->i2c = i2c; |
573 | 573 | ||
574 | info("trying to detect myself\n"); | 574 | cx_info("trying to detect myself\n"); |
575 | 575 | ||
576 | /* making a dummy read, because of some expected troubles | 576 | /* making a dummy read, because of some expected troubles |
577 | * after power on */ | 577 | * after power on */ |
@@ -579,24 +579,24 @@ struct dvb_frontend *cx24113_attach(struct dvb_frontend *fe, | |||
579 | 579 | ||
580 | rc = cx24113_readreg(state, 0x00); | 580 | rc = cx24113_readreg(state, 0x00); |
581 | if (rc < 0) { | 581 | if (rc < 0) { |
582 | info("CX24113 not found.\n"); | 582 | cx_info("CX24113 not found.\n"); |
583 | goto error; | 583 | goto error; |
584 | } | 584 | } |
585 | state->rev = rc; | 585 | state->rev = rc; |
586 | 586 | ||
587 | switch (rc) { | 587 | switch (rc) { |
588 | case 0x43: | 588 | case 0x43: |
589 | info("detected CX24113 variant\n"); | 589 | cx_info("detected CX24113 variant\n"); |
590 | break; | 590 | break; |
591 | case REV_CX24113: | 591 | case REV_CX24113: |
592 | info("successfully detected\n"); | 592 | cx_info("successfully detected\n"); |
593 | break; | 593 | break; |
594 | default: | 594 | default: |
595 | err("unsupported device id: %x\n", state->rev); | 595 | cx_err("unsupported device id: %x\n", state->rev); |
596 | goto error; | 596 | goto error; |
597 | } | 597 | } |
598 | state->ver = cx24113_readreg(state, 0x01); | 598 | state->ver = cx24113_readreg(state, 0x01); |
599 | info("version: %x\n", state->ver); | 599 | cx_info("version: %x\n", state->ver); |
600 | 600 | ||
601 | /* create dvb_frontend */ | 601 | /* create dvb_frontend */ |
602 | memcpy(&fe->ops.tuner_ops, &cx24113_tuner_ops, | 602 | memcpy(&fe->ops.tuner_ops, &cx24113_tuner_ops, |