Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366873
b: refs/heads/master
c: 004e45d
h: refs/heads/master
i:
  366871: 0582374
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Mar 25, 2013
1 parent 3fc2ecf commit febf165
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: 6f8ca0b541c8bb542edb02dad68bd723625132e7
refs/heads/master: 004e45d736bfe62159bd4dc1549eff414bd27496
10 changes: 6 additions & 4 deletions trunk/drivers/media/v4l2-core/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,20 @@ static void fe_standby(struct dvb_frontend *fe)

static int fe_has_signal(struct dvb_frontend *fe)
{
u16 strength = 0;
u16 strength;

fe->ops.tuner_ops.get_rf_strength(fe, &strength);
if (fe->ops.tuner_ops.get_rf_strength(fe, &strength) < 0)
return 0;

return strength;
}

static int fe_get_afc(struct dvb_frontend *fe)
{
s32 afc = 0;
s32 afc;

fe->ops.tuner_ops.get_afc(fe, &afc);
if (fe->ops.tuner_ops.get_afc(fe, &afc) < 0)
return 0;

return afc;
}
Expand Down

0 comments on commit febf165

Please sign in to comment.