media: ngene: use defines to identify the demod_type
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 25 Feb 2018 12:31:31 +0000 (07:31 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 15:57:49 +0000 (10:57 -0500)
commit66a4c0c749cf9b3ce363085709219cc325d2a647
treef02705ba2520b859417191ca5be36d6557717313
parent6795bf6264829b6678f646164d5ab5e335a99fb1
media: ngene: use defines to identify the demod_type

Make it more clear which demod_type is used for which hardware by having
defines for the possible demod_type values. With that, change the
demod_type evaluation in tuner_attach_probe() to a switch-case instead
of an if() for each possible value.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ngene/ngene-cards.c
drivers/media/pci/ngene/ngene.h