Commit 1b29ceda authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (6441): tuner: clean up ops checking in tuner_status function

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 4e9154b8
...@@ -567,12 +567,13 @@ static void tuner_status(struct dvb_frontend *fe) ...@@ -567,12 +567,13 @@ static void tuner_status(struct dvb_frontend *fe)
if (tuner_status & TUNER_STATUS_STEREO) if (tuner_status & TUNER_STATUS_STEREO)
tuner_info("Stereo: yes\n"); tuner_info("Stereo: yes\n");
} }
if ((ops) && (ops->has_signal)) { if (ops) {
tuner_info("Signal strength: %d\n", ops->has_signal(fe)); if (ops->has_signal)
} tuner_info("Signal strength: %d\n",
if ((ops) && (ops->is_stereo)) { ops->has_signal(fe));
tuner_info("Stereo: %s\n", ops->is_stereo(fe) ? if (ops->is_stereo)
"yes" : "no"); tuner_info("Stereo: %s\n",
ops->is_stereo(fe) ? "yes" : "no");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment