]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
media: tuners: fc0013 Remove unused functions
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 16 Nov 2024 15:16:31 +0000 (15:16 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 2 Dec 2024 13:05:25 +0000 (14:05 +0100)
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>
drivers/media/tuners/fc0013.c
drivers/media/tuners/fc0013.h

index 1006a2798eefc0220ef6b07d0344bf4cea560ff7..90d2ef06759447d9632580893e2d047cf941ccd9 100644 (file)
@@ -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;
index 74ce5903f1992a735a32c03da2f4a7913c829f14..47ab36342ee86e96fcdede2106911e75392a3be5 100644 (file)
@@ -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