From: Malcolm Priestley Date: Tue, 10 Jan 2012 22:45:31 +0000 (-0300) Subject: [media] [BUG] it913x-fe fix typo error making SNR levels unstable X-Git-Tag: v3.12-rc1~3230^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9544e8a64795d75875ff4c680a43aa452a37b260;p=kernel%2Fkernel-generic.git [media] [BUG] it913x-fe fix typo error making SNR levels unstable Fix error where SNR unstable and jumps levels. Signed-off-by: Malcolm Priestley Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/it913x-fe.c b/drivers/media/dvb/frontends/it913x-fe.c index 7290801..ccc36bf 100644 --- a/drivers/media/dvb/frontends/it913x-fe.c +++ b/drivers/media/dvb/frontends/it913x-fe.c @@ -525,7 +525,7 @@ static int it913x_fe_read_snr(struct dvb_frontend *fe, u16 *snr) ret = it913x_read_reg(state, 0x2c, reg, sizeof(reg)); - snr_val = (u32)(reg[2] << 16) | (reg[1] < 8) | reg[0]; + snr_val = (u32)(reg[2] << 16) | (reg[1] << 8) | reg[0]; ret |= it913x_read_reg(state, 0xf78b, reg, 1); if (reg[0])