[media] em28xx: switch PCTV 461e to ts2020 driver
authorAntti Palosaari <crope@iki.fi>
Mon, 23 Mar 2015 21:33:29 +0000 (18:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 01:24:25 +0000 (22:24 -0300)
Change ts2022 driver to ts2020 driver as ts2020 driver now supports
both models.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/Kconfig
drivers/media/usb/em28xx/em28xx-dvb.c

index f5d7198753c76883b644da2d4b543b959b0991b1..e382210c4adaba001a8e939cb737a8c3aaa057a2 100644 (file)
@@ -55,7 +55,7 @@ config VIDEO_EM28XX_DVB
        select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT
        select MEDIA_TUNER_TDA18212 if MEDIA_SUBDRV_AUTOSELECT
        select DVB_M88DS3103 if MEDIA_SUBDRV_AUTOSELECT
-       select MEDIA_TUNER_M88TS2022 if MEDIA_SUBDRV_AUTOSELECT
+       select DVB_TS2020 if MEDIA_SUBDRV_AUTOSELECT
        select DVB_DRX39XYJ if MEDIA_SUBDRV_AUTOSELECT
        select DVB_SI2168 if MEDIA_SUBDRV_AUTOSELECT
        select MEDIA_TUNER_SI2157 if MEDIA_SUBDRV_AUTOSELECT
index 6bfe81d97eba349b54951a985818554de4528052..a5b22c5a240ced569dd83128b6d237838af0b2ef 100644 (file)
@@ -54,7 +54,7 @@
 #include "qt1010.h"
 #include "mb86a20s.h"
 #include "m88ds3103.h"
-#include "m88ts2022.h"
+#include "ts2020.h"
 #include "si2168.h"
 #include "si2157.h"
 
@@ -1492,8 +1492,7 @@ static int em28xx_dvb_init(struct em28xx *dev)
                        struct i2c_adapter *i2c_adapter;
                        struct i2c_client *client;
                        struct i2c_board_info info;
-                       struct m88ts2022_config m88ts2022_config = {
-                               .clock = 27000000,
+                       struct ts2020_config ts2020_config = {
                        };
                        memset(&info, 0, sizeof(struct i2c_board_info));
 
@@ -1508,11 +1507,11 @@ static int em28xx_dvb_init(struct em28xx *dev)
                        }
 
                        /* attach tuner */
-                       m88ts2022_config.fe = dvb->fe[0];
-                       strlcpy(info.type, "m88ts2022", I2C_NAME_SIZE);
+                       ts2020_config.fe = dvb->fe[0];
+                       strlcpy(info.type, "ts2022", I2C_NAME_SIZE);
                        info.addr = 0x60;
-                       info.platform_data = &m88ts2022_config;
-                       request_module("m88ts2022");
+                       info.platform_data = &ts2020_config;
+                       request_module("ts2020");
                        client = i2c_new_device(i2c_adapter, &info);
                        if (client == NULL || client->dev.driver == NULL) {
                                dvb_frontend_detach(dvb->fe[0]);