mirror of
https://github.com/torvalds/linux.git
synced 2025-04-12 06:49:52 +00:00
media: tuners: fc0013 Remove unused functions
fc0013_rc_cal_add() and fc0013_rc_cal_reset() were added in 2012's commit e889adc91187 ("[media] fc001x: tuner driver for FC0013") but haven't been used. Remove them. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
parent
bf00d30ce5
commit
5c54608284
@ -112,70 +112,6 @@ static int fc0013_sleep(struct dvb_frontend *fe)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
|
||||
{
|
||||
struct fc0013_priv *priv = fe->tuner_priv;
|
||||
int ret;
|
||||
u8 rc_cal;
|
||||
int val;
|
||||
|
||||
if (fe->ops.i2c_gate_ctrl)
|
||||
fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
|
||||
|
||||
/* push rc_cal value, get rc_cal value */
|
||||
ret = fc0013_writereg(priv, 0x10, 0x00);
|
||||
if (ret)
|
||||
goto error_out;
|
||||
|
||||
/* get rc_cal value */
|
||||
ret = fc0013_readreg(priv, 0x10, &rc_cal);
|
||||
if (ret)
|
||||
goto error_out;
|
||||
|
||||
rc_cal &= 0x0f;
|
||||
|
||||
val = (int)rc_cal + rc_val;
|
||||
|
||||
/* forcing rc_cal */
|
||||
ret = fc0013_writereg(priv, 0x0d, 0x11);
|
||||
if (ret)
|
||||
goto error_out;
|
||||
|
||||
/* modify rc_cal value */
|
||||
if (val > 15)
|
||||
ret = fc0013_writereg(priv, 0x10, 0x0f);
|
||||
else if (val < 0)
|
||||
ret = fc0013_writereg(priv, 0x10, 0x00);
|
||||
else
|
||||
ret = fc0013_writereg(priv, 0x10, (u8)val);
|
||||
|
||||
error_out:
|
||||
if (fe->ops.i2c_gate_ctrl)
|
||||
fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(fc0013_rc_cal_add);
|
||||
|
||||
int fc0013_rc_cal_reset(struct dvb_frontend *fe)
|
||||
{
|
||||
struct fc0013_priv *priv = fe->tuner_priv;
|
||||
int ret;
|
||||
|
||||
if (fe->ops.i2c_gate_ctrl)
|
||||
fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
|
||||
|
||||
ret = fc0013_writereg(priv, 0x0d, 0x01);
|
||||
if (!ret)
|
||||
ret = fc0013_writereg(priv, 0x10, 0x00);
|
||||
|
||||
if (fe->ops.i2c_gate_ctrl)
|
||||
fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(fc0013_rc_cal_reset);
|
||||
|
||||
static int fc0013_set_vhf_track(struct fc0013_priv *priv, u32 freq)
|
||||
{
|
||||
int ret;
|
||||
|
@ -16,8 +16,6 @@ extern struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
|
||||
struct i2c_adapter *i2c,
|
||||
u8 i2c_address, int dual_master,
|
||||
enum fc001x_xtal_freq xtal_freq);
|
||||
extern int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val);
|
||||
extern int fc0013_rc_cal_reset(struct dvb_frontend *fe);
|
||||
#else
|
||||
static inline struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
|
||||
struct i2c_adapter *i2c,
|
||||
@ -28,15 +26,6 @@ static inline struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int fc0013_rc_cal_reset(struct dvb_frontend *fe)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user