aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Metzler <rjkm@metzlerbros.de>2017-06-25 17:37:09 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-26 07:18:28 -0400
commit6475483734d86f88848fcd61db3d4c35123abcba (patch)
tree4a6c3341bbf431ce4d5b8ac53e4d37d1afb03ffc
parentdd3c5d0086e0285ba5f1fc4ce3abde0f5a4092bc (diff)
media: staging: cxd2099: Removed useless printing in cxd2099 driver
campoll and read_data are called very often and the printouts are very annoying and make the driver unusable. They seem to be left over from developing the buffer mode. Original code change by Ralph Metzler, modified by Jasmin Jessich to match current Kernel code. Signed-off-by: Ralph Metzler <rjkm@metzlerbros.de> Signed-off-by: Jasmin Jessich <jasmin@anw.at> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/staging/media/cxd2099/cxd2099.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/media/cxd2099/cxd2099.c b/drivers/staging/media/cxd2099/cxd2099.c
index 60d8dd03e7ff..6426ff1b86ea 100644
--- a/drivers/staging/media/cxd2099/cxd2099.c
+++ b/drivers/staging/media/cxd2099/cxd2099.c
@@ -568,14 +568,10 @@ static int campoll(struct cxd *ci)
568 return 0; 568 return 0;
569 write_reg(ci, 0x05, istat); 569 write_reg(ci, 0x05, istat);
570 570
571 if (istat & 0x40) { 571 if (istat & 0x40)
572 ci->dr = 1; 572 ci->dr = 1;
573 dev_info(&ci->i2c->dev, "DR\n"); 573 if (istat & 0x20)
574 }
575 if (istat & 0x20) {
576 ci->write_busy = 0; 574 ci->write_busy = 0;
577 dev_info(&ci->i2c->dev, "WC\n");
578 }
579 575
580 if (istat & 2) { 576 if (istat & 2) {
581 u8 slotstat; 577 u8 slotstat;
@@ -628,7 +624,6 @@ static int read_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount)
628 campoll(ci); 624 campoll(ci);
629 mutex_unlock(&ci->lock); 625 mutex_unlock(&ci->lock);
630 626
631 dev_info(&ci->i2c->dev, "%s\n", __func__);
632 if (!ci->dr) 627 if (!ci->dr)
633 return 0; 628 return 0;
634 629