提交 006ed1ec 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release

This test is easier to read.
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 cf04d29c
...@@ -504,9 +504,9 @@ static void tda829x_release(struct dvb_frontend *fe) ...@@ -504,9 +504,9 @@ static void tda829x_release(struct dvb_frontend *fe)
{ {
struct tda8290_priv *priv = fe->analog_demod_priv; struct tda8290_priv *priv = fe->analog_demod_priv;
/* dont try to release the tuner /* only try to release the tuner if we've
* if we didn't attach it from this module */ * attached it from within this module */
if ((priv->ver > TDA8290) && (priv->ver > TDA8295)) if (priv->ver & (TDA18271 | TDA8275 | TDA8275A))
if (fe->ops.tuner_ops.release) if (fe->ops.tuner_ops.release)
fe->ops.tuner_ops.release(fe); fe->ops.tuner_ops.release(fe);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册