Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285787
b: refs/heads/master
c: dab734e
h: refs/heads/master
i:
  285785: 23ba2fd
  285783: 81c38ef
v: v3
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Jan 11, 2012
1 parent 3e8157a commit b6f84ba
Show file tree
Hide file tree
Showing 2 changed files with 4 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: b748e6a91e136a582943a496eac40071a23beff3
refs/heads/master: dab734ec95168488c4b32632e968ce885a083078
6 changes: 3 additions & 3 deletions trunk/drivers/media/dvb/frontends/hd29l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");
static int hd29l2_wr_regs(struct hd29l2_priv *priv, u8 reg, u8 *val, int len)
{
int ret;
u8 buf[2+len];
u8 buf[2 + len];
struct i2c_msg msg[1] = {
{
.addr = priv->cfg.i2c_addr,
Expand Down Expand Up @@ -476,7 +476,7 @@ static enum dvbfe_search hd29l2_search(struct dvb_frontend *fe)

/* ensure modulation validy */
/* 0=QAM4_NR, 1=QAM4, 2=QAM16, 3=QAM32, 4=QAM64 */
if (modulation > 4) {
if (modulation > (ARRAY_SIZE(reg_mod_vals_tab[0].val) - 1)) {
dbg("%s: modulation=%d not valid", __func__, modulation);
goto err;
}
Expand Down Expand Up @@ -735,7 +735,7 @@ static int hd29l2_init(struct dvb_frontend *fe)
/* reset demod */
/* it is recommended to HW reset chip using RST_N pin */
if (fe->callback) {
ret = fe->callback(fe, 0, 0, 0);
ret = fe->callback(fe, DVB_FRONTEND_COMPONENT_DEMOD, 0, 0);
if (ret)
goto err;

Expand Down

0 comments on commit b6f84ba

Please sign in to comment.