return r820t_write(priv, reg, &val, 1);
}
-static int r820_read(struct r820t_priv *priv, u8 reg, u8 *val, int len)
+static int r820t_read(struct r820t_priv *priv, u8 reg, u8 *val, int len)
{
int rc, i;
u8 *p = &priv->buf[1];
mix_div = mix_div << 1;
}
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return rc;
msleep(10);
/* Check if PLL has locked */
- rc = r820_read(priv, 0x00, data, 3);
+ rc = r820t_read(priv, 0x00, data, 3);
if (rc < 0)
return rc;
if (data[2] & 0x40)
return rc;
/* Check if calibration worked */
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return rc;
u8 data[4];
int rc;
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return rc;
if (rc < 0)
return rc;
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return rc;
msleep(5);
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
return rc;
if ((!data[2]) & 0x40)
fe->ops.i2c_gate_ctrl(fe, 1);
/* check if the tuner is there */
- rc = r820_read(priv, 0x00, data, sizeof(data));
+ rc = r820t_read(priv, 0x00, data, sizeof(data));
if (rc < 0)
goto err;