Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 006ed1ec authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

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



This test is easier to read.

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent cf04d29c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -504,9 +504,9 @@ static void tda829x_release(struct dvb_frontend *fe)
{
	struct tda8290_priv *priv = fe->analog_demod_priv;

	/* dont try to release the tuner
	 * if we didn't attach it from this module */
	if ((priv->ver > TDA8290) && (priv->ver > TDA8295))
	/* only try to release the tuner if we've
	 * attached it from within this module */
	if (priv->ver & (TDA18271 | TDA8275 | TDA8275A))
		if (fe->ops.tuner_ops.release)
			fe->ops.tuner_ops.release(fe);