{
u16 strength = 0;
- if (fe->ops.tuner_ops.get_rf_strength)
- fe->ops.tuner_ops.get_rf_strength(fe, &strength);
+ fe->ops.tuner_ops.get_rf_strength(fe, &strength);
return strength;
}
{
s32 afc = 0;
- if (fe->ops.tuner_ops.get_afc)
- fe->ops.tuner_ops.get_afc(fe, &afc);
+ fe->ops.tuner_ops.get_afc(fe, &afc);
return afc;
}
static const struct analog_demod_ops tuner_analog_ops = {
.set_params = fe_set_params,
.standby = fe_standby,
- .has_signal = fe_has_signal,
- .get_afc = fe_get_afc,
.set_config = fe_set_config,
.tuner_status = tuner_status
};
memcpy(analog_ops, &tuner_analog_ops,
sizeof(struct analog_demod_ops));
- if (fe_tuner_ops->get_rf_strength == NULL)
- analog_ops->has_signal = NULL;
- if (fe_tuner_ops->get_afc == NULL)
- analog_ops->get_afc = NULL;
+ if (fe_tuner_ops->get_rf_strength)
+ analog_ops->has_signal = fe_has_signal;
+ if (fe_tuner_ops->get_afc)
+ analog_ops->get_afc = fe_get_afc;
} else {
t->name = analog_ops->info.name;