mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
4e9154b8a7
commit
1b29cedab9
|
@ -567,12 +567,13 @@ static void tuner_status(struct dvb_frontend *fe)
|
|||
if (tuner_status & TUNER_STATUS_STEREO)
|
||||
tuner_info("Stereo: yes\n");
|
||||
}
|
||||
if ((ops) && (ops->has_signal)) {
|
||||
tuner_info("Signal strength: %d\n", ops->has_signal(fe));
|
||||
}
|
||||
if ((ops) && (ops->is_stereo)) {
|
||||
tuner_info("Stereo: %s\n", ops->is_stereo(fe) ?
|
||||
"yes" : "no");
|
||||
if (ops) {
|
||||
if (ops->has_signal)
|
||||
tuner_info("Signal strength: %d\n",
|
||||
ops->has_signal(fe));
|
||||
if (ops->is_stereo)
|
||||
tuner_info("Stereo: %s\n",
|
||||
ops->is_stereo(fe) ? "yes" : "no");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue