diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-10 12:43:10 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-17 02:28:05 +0200 |
commit | 6b8c2308761029868f36d9037377806c63cf06e9 (patch) | |
tree | 08f24f54fd14eb5da82161356d31feece0db8b0d /drivers | |
parent | [media] r820t: use the second table for 7MHz (diff) | |
download | linux-6b8c2308761029868f36d9037377806c63cf06e9.tar.xz linux-6b8c2308761029868f36d9037377806c63cf06e9.zip |
[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')
-rw-r--r-- | drivers/media/tuners/r820t.c | 5 |
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) return rc; return -EREMOTEIO; } - tuner_dbg("%s: i2c rd reg=%02x len=%d: %*ph\n", - __func__, reg, len, len, p); /* Copy data to the output buffer */ for (i = 0; i < len; i++) val[i] = bitrev8(p[i]); + tuner_dbg("%s: i2c rd reg=%02x len=%d: %*ph\n", + __func__, reg, len, len, val); + return 0; } |