]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7983): tda18271_calc_rf_cal must return the return value of tda18271_lookup_map
authorMichael Krufky <mkrufky@linuxtv.org>
Sat, 31 May 2008 21:18:55 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 5 Jun 2008 09:35:54 +0000 (06:35 -0300)
On the TDA18271HD/C1, we perform RF tracking filter correction for VHF low
band, only. If supplied a frequency out of range, the error must be returned
to the caller (tda18271c1_rf_tracking_filter_calibration) so that it can
decide whether or not to write to register EB14, RFC_CPROG[7:0]

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/common/tuners/tda18271-common.c

index 42b5f5d4bfe64109df3f25760be9d88ea73ba071..f1894fec32b930343d69f0665a698ed267b8e731 100644 (file)
@@ -648,11 +648,11 @@ int tda18271_calc_rf_cal(struct dvb_frontend *fe, u32 *freq)
        unsigned char *regs = priv->tda18271_regs;
        u8 val;
 
-       tda18271_lookup_map(fe, RF_CAL, freq, &val);
+       int ret = tda18271_lookup_map(fe, RF_CAL, freq, &val);
 
        regs[R_EB14] = val;
 
-       return 0;
+       return ret;
 }
 
 /*