Commit 64754837 authored by Ralph Metzler's avatar Ralph Metzler Committed by Mauro Carvalho Chehab

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: default avatarRalph Metzler <rjkm@metzlerbros.de>
Signed-off-by: default avatarJasmin Jessich <jasmin@anw.at>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent dd3c5d00
......@@ -568,14 +568,10 @@ static int campoll(struct cxd *ci)
return 0;
write_reg(ci, 0x05, istat);
if (istat & 0x40) {
if (istat & 0x40)
ci->dr = 1;
dev_info(&ci->i2c->dev, "DR\n");
}
if (istat & 0x20) {
if (istat & 0x20)
ci->write_busy = 0;
dev_info(&ci->i2c->dev, "WC\n");
}
if (istat & 2) {
u8 slotstat;
......@@ -628,7 +624,6 @@ static int read_data(struct dvb_ca_en50221 *ca, int slot, u8 *ebuf, int ecount)
campoll(ci);
mutex_unlock(&ci->lock);
dev_info(&ci->i2c->dev, "%s\n", __func__);
if (!ci->dr)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment