aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-10 06:43:10 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 20:28:05 -0400
commit6b8c2308761029868f36d9037377806c63cf06e9 (patch)
tree08f24f54fd14eb5da82161356d31feece0db8b0d /drivers/media
parent6189f80d5d6ae58b7262a0908cabf7858397711f (diff)
[media] r820t: Show the read data in the bit-reversed order
As the driver's logic uses the bit-reversed order for read, use it as well when displaying the debug messages. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Tested-by: Antti Palosaari <crope@iki.fi>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/tuners/r820t.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c
index 1880807e3e8d..bb154449a2cf 100644
--- a/drivers/media/tuners/r820t.c
+++ b/drivers/media/tuners/r820t.c
@@ -429,13 +429,14 @@ static int r820_read(struct r820t_priv *priv, u8 reg, u8 *val, int len)
429 return rc; 429 return rc;
430 return -EREMOTEIO; 430 return -EREMOTEIO;
431 } 431 }
432 tuner_dbg("%s: i2c rd reg=%02x len=%d: %*ph\n",
433 __func__, reg, len, len, p);
434 432
435 /* Copy data to the output buffer */ 433 /* Copy data to the output buffer */
436 for (i = 0; i < len; i++) 434 for (i = 0; i < len; i++)
437 val[i] = bitrev8(p[i]); 435 val[i] = bitrev8(p[i]);
438 436
437 tuner_dbg("%s: i2c rd reg=%02x len=%d: %*ph\n",
438 __func__, reg, len, len, val);
439
439 return 0; 440 return 0;
440} 441}
441 442