Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219170
b: refs/heads/master
c: 5b9a6f3
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 8831472 commit 046aa29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24764107ec78230304811b11334090f65d1bc352
refs/heads/master: 5b9a6f37ab019456d15f6e2e45ebdb9f4c5a0d25
5 changes: 2 additions & 3 deletions trunk/drivers/media/dvb/frontends/cx22702.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static int cx22702_read_signal_strength(struct dvb_frontend *fe,
{
struct cx22702_state *state = fe->demodulator_priv;

u16 rs_ber = 0;
u16 rs_ber;
rs_ber = cx22702_readreg(state, 0x23);
*signal_strength = (rs_ber << 8) | rs_ber;

Expand All @@ -519,7 +519,7 @@ static int cx22702_read_snr(struct dvb_frontend *fe, u16 *snr)
{
struct cx22702_state *state = fe->demodulator_priv;

u16 rs_ber = 0;
u16 rs_ber;
if (cx22702_readreg(state, 0xE4) & 0x02) {
/* Realtime statistics */
rs_ber = (cx22702_readreg(state, 0xDE) & 0x7F) << 7
Expand Down Expand Up @@ -590,7 +590,6 @@ struct dvb_frontend *cx22702_attach(const struct cx22702_config *config,
/* setup the state */
state->config = config;
state->i2c = i2c;
state->prevUCBlocks = 0;

/* check if the demod is there */
if (cx22702_readreg(state, 0x1f) != 0x3)
Expand Down

0 comments on commit 046aa29

Please sign in to comment.