Commit f68afe5d authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] mt20xx.c: fix compiler warnings

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 398b0d1f
...@@ -430,11 +430,10 @@ static void mt2050_set_antenna(struct dvb_frontend *fe, unsigned char antenna) ...@@ -430,11 +430,10 @@ static void mt2050_set_antenna(struct dvb_frontend *fe, unsigned char antenna)
{ {
struct microtune_priv *priv = fe->tuner_priv; struct microtune_priv *priv = fe->tuner_priv;
unsigned char buf[2]; unsigned char buf[2];
int ret;
buf[0] = 6; buf[0] = 6;
buf[1] = antenna ? 0x11 : 0x10; buf[1] = antenna ? 0x11 : 0x10;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); tuner_i2c_xfer_send(&priv->i2c_props, buf, 2);
tuner_dbg("mt2050: enabled antenna connector %d\n", antenna); tuner_dbg("mt2050: enabled antenna connector %d\n", antenna);
} }
...@@ -574,21 +573,20 @@ static int mt2050_init(struct dvb_frontend *fe) ...@@ -574,21 +573,20 @@ static int mt2050_init(struct dvb_frontend *fe)
{ {
struct microtune_priv *priv = fe->tuner_priv; struct microtune_priv *priv = fe->tuner_priv;
unsigned char buf[2]; unsigned char buf[2];
int ret;
buf[0]=6; buf[0] = 6;
buf[1]=0x10; buf[1] = 0x10;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // power tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* power */
buf[0]=0x0f; buf[0] = 0x0f;
buf[1]=0x0f; buf[1] = 0x0f;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,2); // m1lo tuner_i2c_xfer_send(&priv->i2c_props, buf, 2); /* m1lo */
buf[0]=0x0d; buf[0] = 0x0d;
ret=tuner_i2c_xfer_send(&priv->i2c_props,buf,1); tuner_i2c_xfer_send(&priv->i2c_props, buf, 1);
tuner_i2c_xfer_recv(&priv->i2c_props,buf,1); tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1);
tuner_dbg("mt2050: sro is %x\n",buf[0]); tuner_dbg("mt2050: sro is %x\n", buf[0]);
memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_tuner_ops)); memcpy(&fe->ops.tuner_ops, &mt2050_tuner_ops, sizeof(struct dvb_tuner_ops));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment