[media] it913x: include tuner IDs from af9033.h
authorAntti Palosaari <crope@iki.fi>
Thu, 28 Feb 2013 23:14:38 +0000 (20:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 21:59:17 +0000 (18:59 -0300)
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/it913x.c
drivers/media/tuners/it913x_priv.h

index 6ae9d5ae9654d9947e112a6bec4c2aa1ab1f824c..1cb97092f5621339d47ab791ad35092046258977 100644 (file)
@@ -156,22 +156,22 @@ static int it913x_init(struct dvb_frontend *fe)
 
        /* LNA Scripts */
        switch (state->tuner_type) {
-       case IT9135_51:
+       case AF9033_TUNER_IT9135_51:
                set_lna = it9135_51;
                break;
-       case IT9135_52:
+       case AF9033_TUNER_IT9135_52:
                set_lna = it9135_52;
                break;
-       case IT9135_60:
+       case AF9033_TUNER_IT9135_60:
                set_lna = it9135_60;
                break;
-       case IT9135_61:
+       case AF9033_TUNER_IT9135_61:
                set_lna = it9135_61;
                break;
-       case IT9135_62:
+       case AF9033_TUNER_IT9135_62:
                set_lna = it9135_62;
                break;
-       case IT9135_38:
+       case AF9033_TUNER_IT9135_38:
        default:
                set_lna = it9135_38;
        }
@@ -444,14 +444,14 @@ struct dvb_frontend *it913x_attach(struct dvb_frontend *fe,
        state->i2c_addr = i2c_addr;
 
        switch (config) {
-       case IT9135_38:
-       case IT9135_51:
-       case IT9135_52:
+       case AF9033_TUNER_IT9135_38:
+       case AF9033_TUNER_IT9135_51:
+       case AF9033_TUNER_IT9135_52:
                state->chip_ver = 0x01;
                break;
-       case IT9135_60:
-       case IT9135_61:
-       case IT9135_62:
+       case AF9033_TUNER_IT9135_60:
+       case AF9033_TUNER_IT9135_61:
+       case AF9033_TUNER_IT9135_62:
                state->chip_ver = 0x02;
                break;
        default:
index 315ff6c72c532b669f44c556f4f176856403459e..1491bf85dc34001e7010b80934c001760e1d2ff3 100644 (file)
 #define IT913X_PRIV_H
 
 #include "it913x.h"
-
-/* Build in tuner types */
-#define IT9137 0x38
-#define IT9135_38 0x38
-#define IT9135_51 0x51
-#define IT9135_52 0x52
-#define IT9135_60 0x60
-#define IT9135_61 0x61
-#define IT9135_62 0x62
+#include "af9033.h"
 
 #define PRO_LINK               0x0
 #define PRO_DMOD               0x1