aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-22 00:44:03 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:01:10 -0500
commit1b29cedab9e69a6e4c9bba5f1981437b62be7bea (patch)
treeb0355b764615e0e51bef9b1e5a63604a185bdc4d
parent4e9154b8a77d0f0f8f06857162823905612a50d7 (diff)
V4L/DVB (6441): tuner: clean up ops checking in tuner_status function
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/tuner-core.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 805a2bd29e7f..3de03da28da0 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -567,12 +567,13 @@ static void tuner_status(struct dvb_frontend *fe)
567 if (tuner_status & TUNER_STATUS_STEREO) 567 if (tuner_status & TUNER_STATUS_STEREO)
568 tuner_info("Stereo: yes\n"); 568 tuner_info("Stereo: yes\n");
569 } 569 }
570 if ((ops) && (ops->has_signal)) { 570 if (ops) {
571 tuner_info("Signal strength: %d\n", ops->has_signal(fe)); 571 if (ops->has_signal)
572 } 572 tuner_info("Signal strength: %d\n",
573 if ((ops) && (ops->is_stereo)) { 573 ops->has_signal(fe));
574 tuner_info("Stereo: %s\n", ops->is_stereo(fe) ? 574 if (ops->is_stereo)
575 "yes" : "no"); 575 tuner_info("Stereo: %s\n",
576 ops->is_stereo(fe) ? "yes" : "no");
576 } 577 }
577} 578}
578 579