diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-05 15:08:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:05:07 -0500 |
commit | 73c993a8294077ae1b724286da8ac323c25d90db (patch) | |
tree | 47a44433e6c1c2e3d4ba4fd5d557adb321a094e1 /drivers/media/video/cx88 | |
parent | 8c70017f5793e68ea48085a65008d713c9a85dde (diff) |
V4L/DVB (7045): xc5000: Small amount of cleanup and commenting
xc5000: Small amount of cleanup and commenting, just for clarification.
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 7 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index 3ba31572c657..254290975cdb 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -1885,10 +1885,10 @@ static void dvico_fusionhdtv_hybrid_init(struct cx88_core *core) | |||
1885 | * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both * | 1885 | * PCTV HD 800i with an xc5000 sillicon tuner. This is used for both * |
1886 | * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */ | 1886 | * analog tuner attach (tuner-core.c) and dvb tuner attach (cx88-dvb.c) */ |
1887 | 1887 | ||
1888 | int cx88_tuner_callback(void *i2c_algo, int command, int arg) | 1888 | int cx88_tuner_callback(void *priv, int command, int arg) |
1889 | { | 1889 | { |
1890 | struct i2c_algo_bit_data *algo = i2c_algo; | 1890 | struct i2c_algo_bit_data *i2c_algo = priv; |
1891 | struct cx88_core *core = algo->data; | 1891 | struct cx88_core *core = i2c_algo->data; |
1892 | 1892 | ||
1893 | switch(core->boardnr) { | 1893 | switch(core->boardnr) { |
1894 | case CX88_BOARD_PINNACLE_PCTV_HD_800i: | 1894 | case CX88_BOARD_PINNACLE_PCTV_HD_800i: |
@@ -1898,7 +1898,6 @@ int cx88_tuner_callback(void *i2c_algo, int command, int arg) | |||
1898 | cx_clear(MO_GP0_IO, 0x00000004); | 1898 | cx_clear(MO_GP0_IO, 0x00000004); |
1899 | mdelay(200); | 1899 | mdelay(200); |
1900 | cx_set(MO_GP0_IO, 0x00000004); | 1900 | cx_set(MO_GP0_IO, 0x00000004); |
1901 | printk(KERN_ERR "xc5000: in reset for xc5000\n"); | ||
1902 | mdelay(200); | 1901 | mdelay(200); |
1903 | return 0; | 1902 | return 0; |
1904 | } | 1903 | } |
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index 0246f97a9987..c852efca1592 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -385,7 +385,6 @@ static struct s5h1409_config pinnacle_pctv_hd_800i_config = { | |||
385 | static struct xc5000_config pinnacle_pctv_hd_800i_tuner_config = { | 385 | static struct xc5000_config pinnacle_pctv_hd_800i_tuner_config = { |
386 | .i2c_address = 0x64, | 386 | .i2c_address = 0x64, |
387 | .if_khz = 5380, | 387 | .if_khz = 5380, |
388 | /* cannot set .video_dev here, do it right before attach */ | ||
389 | .tuner_callback = cx88_tuner_callback, | 388 | .tuner_callback = cx88_tuner_callback, |
390 | }; | 389 | }; |
391 | 390 | ||
@@ -654,7 +653,7 @@ static int dvb_register(struct cx8802_dev *dev) | |||
654 | /* tuner_config.video_dev must point to | 653 | /* tuner_config.video_dev must point to |
655 | * i2c_adap.algo_data | 654 | * i2c_adap.algo_data |
656 | */ | 655 | */ |
657 | pinnacle_pctv_hd_800i_tuner_config.video_dev = | 656 | pinnacle_pctv_hd_800i_tuner_config.priv = |
658 | dev->core->i2c_adap.algo_data; | 657 | dev->core->i2c_adap.algo_data; |
659 | dvb_attach(xc5000_attach, dev->dvb.frontend, | 658 | dvb_attach(xc5000_attach, dev->dvb.frontend, |
660 | &dev->core->i2c_adap, | 659 | &dev->core->i2c_adap, |