aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-12-04 23:34:56 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:22:53 -0500
commited35526027f3b45a7c799f73916166b1161bf082 (patch)
tree771316b1cb79bf3b1e69da4777520ea1a8c7f928 /drivers/media/video
parent5786a34b439b660256e236f870c0418e39dd16d0 (diff)
V4L/DVB (4945): Cx88: consolidate cx22702_config structs
There are five cx22702_config structs used by cx88-dvb, only two of which are unique. This patch removes the duplicates and sets each card to use one of the two remaining config structs. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 60dd80f595e9..d9907ce8ad4b 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -282,15 +282,7 @@ static struct cx22702_config connexant_refboard_config = {
282 .output_mode = CX22702_SERIAL_OUTPUT, 282 .output_mode = CX22702_SERIAL_OUTPUT,
283}; 283};
284 284
285static struct cx22702_config hauppauge_novat_config = { 285static struct cx22702_config hauppauge_hvr_config = {
286 .demod_address = 0x43,
287 .output_mode = CX22702_SERIAL_OUTPUT,
288};
289static struct cx22702_config hauppauge_hvr1100_config = {
290 .demod_address = 0x63,
291 .output_mode = CX22702_SERIAL_OUTPUT,
292};
293static struct cx22702_config hauppauge_hvr3000_config = {
294 .demod_address = 0x63, 286 .demod_address = 0x63,
295 .output_mode = CX22702_SERIAL_OUTPUT, 287 .output_mode = CX22702_SERIAL_OUTPUT,
296}; 288};
@@ -313,11 +305,6 @@ static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe,
313 return ret; 305 return ret;
314} 306}
315 307
316static struct cx22702_config hauppauge_hvr1300_config = {
317 .demod_address = 0x63,
318 .output_mode = CX22702_SERIAL_OUTPUT,
319};
320
321static int or51132_set_ts_param(struct dvb_frontend* fe, 308static int or51132_set_ts_param(struct dvb_frontend* fe,
322 int is_punctured) 309 int is_punctured)
323{ 310{
@@ -465,7 +452,7 @@ static int dvb_register(struct cx8802_dev *dev)
465 switch (dev->core->board) { 452 switch (dev->core->board) {
466 case CX88_BOARD_HAUPPAUGE_DVB_T1: 453 case CX88_BOARD_HAUPPAUGE_DVB_T1:
467 dev->dvb.frontend = dvb_attach(cx22702_attach, 454 dev->dvb.frontend = dvb_attach(cx22702_attach,
468 &hauppauge_novat_config, 455 &connexant_refboard_config,
469 &dev->core->i2c_adap); 456 &dev->core->i2c_adap);
470 if (dev->dvb.frontend != NULL) { 457 if (dev->dvb.frontend != NULL) {
471 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 458 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
@@ -490,7 +477,7 @@ static int dvb_register(struct cx8802_dev *dev)
490 case CX88_BOARD_HAUPPAUGE_HVR1100: 477 case CX88_BOARD_HAUPPAUGE_HVR1100:
491 case CX88_BOARD_HAUPPAUGE_HVR1100LP: 478 case CX88_BOARD_HAUPPAUGE_HVR1100LP:
492 dev->dvb.frontend = dvb_attach(cx22702_attach, 479 dev->dvb.frontend = dvb_attach(cx22702_attach,
493 &hauppauge_hvr1100_config, 480 &hauppauge_hvr_config,
494 &dev->core->i2c_adap); 481 &dev->core->i2c_adap);
495 if (dev->dvb.frontend != NULL) { 482 if (dev->dvb.frontend != NULL) {
496 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 483 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
@@ -709,7 +696,7 @@ static int dvb_register(struct cx8802_dev *dev)
709 break; 696 break;
710 case CX88_BOARD_HAUPPAUGE_HVR1300: 697 case CX88_BOARD_HAUPPAUGE_HVR1300:
711 dev->dvb.frontend = dvb_attach(cx22702_attach, 698 dev->dvb.frontend = dvb_attach(cx22702_attach,
712 &hauppauge_hvr1300_config, 699 &hauppauge_hvr_config,
713 &dev->core->i2c_adap); 700 &dev->core->i2c_adap);
714 if (dev->dvb.frontend != NULL) { 701 if (dev->dvb.frontend != NULL) {
715 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 702 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
@@ -719,7 +706,7 @@ static int dvb_register(struct cx8802_dev *dev)
719 break; 706 break;
720 case CX88_BOARD_HAUPPAUGE_HVR3000: 707 case CX88_BOARD_HAUPPAUGE_HVR3000:
721 dev->dvb.frontend = dvb_attach(cx22702_attach, 708 dev->dvb.frontend = dvb_attach(cx22702_attach,
722 &hauppauge_hvr3000_config, 709 &hauppauge_hvr_config,
723 &dev->core->i2c_adap); 710 &dev->core->i2c_adap);
724 if (dev->dvb.frontend != NULL) { 711 if (dev->dvb.frontend != NULL) {
725 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 712 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,