]> Pileus Git - ~andy/linux/commitdiff
[media] mb86a20s: Fix signal strength calculus
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 1 Mar 2013 19:15:16 +0000 (16:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 19:33:20 +0000 (16:33 -0300)
A register typo made the calculation to not work. Fix it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/mb86a20s.c

index 2720b828d89ed021216544c5fed4343326502fce..0fbfae23d9040b8a8e9cc55e2fc7e8d95204d2c2 100644 (file)
@@ -335,7 +335,7 @@ static int mb86a20s_read_signal_strength(struct dvb_frontend *fe)
                rc = mb86a20s_writereg(state, 0x04, 0x20);
                if (rc < 0)
                        return rc;
-               rc = mb86a20s_writereg(state, 0x04, rf);
+               rc = mb86a20s_writereg(state, 0x05, rf);
                if (rc < 0)
                        return rc;