aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-12-05 00:00:53 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:22:53 -0500
commit4a390558a691445e3d710998b850570fe8a20d31 (patch)
tree65c6235a216f1bba36a9a27f3f532e192abadc30 /drivers/media/video/cx88
parent22f3f17dd705c476d2c8a2d879ddacaa8f9237e3 (diff)
V4L/DVB (4947): Cx88: trivial cleanups
- small whitespace cleanups - 80-column whitespace cleanups - remove unneeded brackets Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 694002a7dfc2..8b203354fccd 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -74,8 +74,8 @@ static int dvb_buf_setup(struct videobuf_queue *q,
74 return 0; 74 return 0;
75} 75}
76 76
77static int dvb_buf_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, 77static int dvb_buf_prepare(struct videobuf_queue *q,
78 enum v4l2_field field) 78 struct videobuf_buffer *vb, enum v4l2_field field)
79{ 79{
80 struct cx8802_dev *dev = q->priv_data; 80 struct cx8802_dev *dev = q->priv_data;
81 return cx8802_buf_prepare(q, dev, (struct cx88_buffer*)vb,field); 81 return cx8802_buf_prepare(q, dev, (struct cx88_buffer*)vb,field);
@@ -87,7 +87,8 @@ static void dvb_buf_queue(struct videobuf_queue *q, struct videobuf_buffer *vb)
87 cx8802_buf_queue(dev, (struct cx88_buffer*)vb); 87 cx8802_buf_queue(dev, (struct cx88_buffer*)vb);
88} 88}
89 89
90static void dvb_buf_release(struct videobuf_queue *q, struct videobuf_buffer *vb) 90static void dvb_buf_release(struct videobuf_queue *q,
91 struct videobuf_buffer *vb)
91{ 92{
92 cx88_free_buffer(q, (struct cx88_buffer*)vb); 93 cx88_free_buffer(q, (struct cx88_buffer*)vb);
93} 94}
@@ -109,7 +110,7 @@ static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, int acquire)
109 110
110 drv = cx8802_get_driver(dev, CX88_MPEG_DVB); 111 drv = cx8802_get_driver(dev, CX88_MPEG_DVB);
111 if (drv) { 112 if (drv) {
112 if(acquire) 113 if (acquire)
113 ret = drv->request_acquire(drv); 114 ret = drv->request_acquire(drv);
114 else 115 else
115 ret = drv->request_release(drv); 116 ret = drv->request_release(drv);
@@ -307,8 +308,7 @@ static struct cx22702_config hauppauge_hvr_config = {
307 .output_mode = CX22702_SERIAL_OUTPUT, 308 .output_mode = CX22702_SERIAL_OUTPUT,
308}; 309};
309 310
310static int or51132_set_ts_param(struct dvb_frontend* fe, 311static int or51132_set_ts_param(struct dvb_frontend* fe, int is_punctured)
311 int is_punctured)
312{ 312{
313 struct cx8802_dev *dev= fe->dvb->priv; 313 struct cx8802_dev *dev= fe->dvb->priv;
314 dev->ts_gen_cntrl = is_punctured ? 0x04 : 0x00; 314 dev->ts_gen_cntrl = is_punctured ? 0x04 : 0x00;
@@ -364,8 +364,7 @@ static struct lgdt330x_config pchdtv_hd5500 = {
364 .set_ts_params = lgdt330x_set_ts_param, 364 .set_ts_params = lgdt330x_set_ts_param,
365}; 365};
366 366
367static int nxt200x_set_ts_param(struct dvb_frontend* fe, 367static int nxt200x_set_ts_param(struct dvb_frontend* fe, int is_punctured)
368 int is_punctured)
369{ 368{
370 struct cx8802_dev *dev= fe->dvb->priv; 369 struct cx8802_dev *dev= fe->dvb->priv;
371 dev->ts_gen_cntrl = is_punctured ? 0x04 : 0x00; 370 dev->ts_gen_cntrl = is_punctured ? 0x04 : 0x00;
@@ -401,11 +400,10 @@ static int kworld_dvbs_100_set_voltage(struct dvb_frontend* fe,
401 struct cx8802_dev *dev= fe->dvb->priv; 400 struct cx8802_dev *dev= fe->dvb->priv;
402 struct cx88_core *core = dev->core; 401 struct cx88_core *core = dev->core;
403 402
404 if (voltage == SEC_VOLTAGE_OFF) { 403 if (voltage == SEC_VOLTAGE_OFF)
405 cx_write(MO_GP0_IO, 0x000006fb); 404 cx_write(MO_GP0_IO, 0x000006fb);
406 } else { 405 else
407 cx_write(MO_GP0_IO, 0x000006f9); 406 cx_write(MO_GP0_IO, 0x000006f9);
408 }
409 407
410 if (core->prev_set_voltage) 408 if (core->prev_set_voltage)
411 return core->prev_set_voltage(fe, voltage); 409 return core->prev_set_voltage(fe, voltage);
@@ -483,8 +481,7 @@ static int dvb_register(struct cx8802_dev *dev)
483 &dev->core->i2c_adap); 481 &dev->core->i2c_adap);
484 if (dev->dvb.frontend != NULL) { 482 if (dev->dvb.frontend != NULL) {
485 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 483 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
486 &dev->core->i2c_adap, 484 &dev->core->i2c_adap, &dvb_pll_fmd1216me);
487 &dvb_pll_fmd1216me);
488 } 485 }
489 break; 486 break;
490 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS: 487 case CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS:
@@ -569,8 +566,7 @@ static int dvb_register(struct cx8802_dev *dev)
569 } 566 }
570 break; 567 break;
571 case CX88_BOARD_PCHDTV_HD3000: 568 case CX88_BOARD_PCHDTV_HD3000:
572 dev->dvb.frontend = dvb_attach(or51132_attach, 569 dev->dvb.frontend = dvb_attach(or51132_attach, &pchdtv_hd3000,
573 &pchdtv_hd3000,
574 &dev->core->i2c_adap); 570 &dev->core->i2c_adap);
575 if (dev->dvb.frontend != NULL) { 571 if (dev->dvb.frontend != NULL) {
576 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 572 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
@@ -702,8 +698,7 @@ static int dvb_register(struct cx8802_dev *dev)
702 &dev->core->i2c_adap); 698 &dev->core->i2c_adap);
703 if (dev->dvb.frontend != NULL) { 699 if (dev->dvb.frontend != NULL) {
704 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 700 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
705 &dev->core->i2c_adap, 701 &dev->core->i2c_adap, &dvb_pll_fmd1216me);
706 &dvb_pll_fmd1216me);
707 } 702 }
708 break; 703 break;
709 case CX88_BOARD_HAUPPAUGE_HVR3000: 704 case CX88_BOARD_HAUPPAUGE_HVR3000:
@@ -712,8 +707,7 @@ static int dvb_register(struct cx8802_dev *dev)
712 &dev->core->i2c_adap); 707 &dev->core->i2c_adap);
713 if (dev->dvb.frontend != NULL) { 708 if (dev->dvb.frontend != NULL) {
714 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61, 709 dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
715 &dev->core->i2c_adap, 710 &dev->core->i2c_adap, &dvb_pll_fmd1216me);
716 &dvb_pll_fmd1216me);
717 } 711 }
718 break; 712 break;
719 default: 713 default: