[media] r820t: Show the read data in the bit-reversed order
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 10 Apr 2013 10:43:10 +0000 (07:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 17 Apr 2013 00:28:05 +0000 (21:28 -0300)
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>
drivers/media/tuners/r820t.c

index 1880807e3e8db2ac9b30e6cdb76106038ddb9b50..bb154449a2cfd0d997cc46584b07c0731a60bfff 100644 (file)
@@ -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;
 }