diff options
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/bcm3510.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mb.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 17 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.h | 1 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/lgdt330x.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/mt352.c | 3 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 3 |
8 files changed, 24 insertions, 12 deletions
diff --git a/drivers/media/dvb/frontends/bcm3510.c b/drivers/media/dvb/frontends/bcm3510.c index 3b132bafd4de..caaee893ca76 100644 --- a/drivers/media/dvb/frontends/bcm3510.c +++ b/drivers/media/dvb/frontends/bcm3510.c | |||
@@ -782,10 +782,9 @@ struct dvb_frontend* bcm3510_attach(const struct bcm3510_config *config, | |||
782 | bcm3510_register_value v; | 782 | bcm3510_register_value v; |
783 | 783 | ||
784 | /* allocate memory for the internal state */ | 784 | /* allocate memory for the internal state */ |
785 | state = kmalloc(sizeof(struct bcm3510_state), GFP_KERNEL); | 785 | state = kzalloc(sizeof(struct bcm3510_state), GFP_KERNEL); |
786 | if (state == NULL) | 786 | if (state == NULL) |
787 | goto error; | 787 | goto error; |
788 | memset(state,0,sizeof(struct bcm3510_state)); | ||
789 | 788 | ||
790 | /* setup the state */ | 789 | /* setup the state */ |
791 | 790 | ||
diff --git a/drivers/media/dvb/frontends/dib3000mb.c b/drivers/media/dvb/frontends/dib3000mb.c index 6b0553608610..ae589adb1c0a 100644 --- a/drivers/media/dvb/frontends/dib3000mb.c +++ b/drivers/media/dvb/frontends/dib3000mb.c | |||
@@ -700,10 +700,9 @@ struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config, | |||
700 | struct dib3000_state* state = NULL; | 700 | struct dib3000_state* state = NULL; |
701 | 701 | ||
702 | /* allocate memory for the internal state */ | 702 | /* allocate memory for the internal state */ |
703 | state = kmalloc(sizeof(struct dib3000_state), GFP_KERNEL); | 703 | state = kzalloc(sizeof(struct dib3000_state), GFP_KERNEL); |
704 | if (state == NULL) | 704 | if (state == NULL) |
705 | goto error; | 705 | goto error; |
706 | memset(state,0,sizeof(struct dib3000_state)); | ||
707 | 706 | ||
708 | /* setup the state */ | 707 | /* setup the state */ |
709 | state->i2c = i2c; | 708 | state->i2c = i2c; |
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index c024fad17337..3b303dbb6156 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c | |||
@@ -832,10 +832,9 @@ struct dvb_frontend* dib3000mc_attach(const struct dib3000_config* config, | |||
832 | u16 devid; | 832 | u16 devid; |
833 | 833 | ||
834 | /* allocate memory for the internal state */ | 834 | /* allocate memory for the internal state */ |
835 | state = kmalloc(sizeof(struct dib3000_state), GFP_KERNEL); | 835 | state = kzalloc(sizeof(struct dib3000_state), GFP_KERNEL); |
836 | if (state == NULL) | 836 | if (state == NULL) |
837 | goto error; | 837 | goto error; |
838 | memset(state,0,sizeof(struct dib3000_state)); | ||
839 | 838 | ||
840 | /* setup the state */ | 839 | /* setup the state */ |
841 | state->i2c = i2c; | 840 | state->i2c = i2c; |
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index a3d57ce9dd12..757075f007c1 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -345,6 +345,23 @@ struct dvb_pll_desc dvb_pll_tbmv30111in = { | |||
345 | }; | 345 | }; |
346 | EXPORT_SYMBOL(dvb_pll_tbmv30111in); | 346 | EXPORT_SYMBOL(dvb_pll_tbmv30111in); |
347 | 347 | ||
348 | /* | ||
349 | * Philips SD1878 Tuner. | ||
350 | */ | ||
351 | struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261 = { | ||
352 | .name = "Philips SD1878", | ||
353 | .min = 950000, | ||
354 | .max = 2150000, | ||
355 | .count = 4, | ||
356 | .entries = { | ||
357 | { 1250000, 499, 500, 0xc4, 0x00}, | ||
358 | { 1550000, 499, 500, 0xc4, 0x40}, | ||
359 | { 2050000, 499, 500, 0xc4, 0x80}, | ||
360 | { 2150000, 499, 500, 0xc4, 0xc0}, | ||
361 | }, | ||
362 | }; | ||
363 | EXPORT_SYMBOL(dvb_pll_philips_sd1878_tda8261); | ||
364 | |||
348 | /* ----------------------------------------------------------- */ | 365 | /* ----------------------------------------------------------- */ |
349 | /* code */ | 366 | /* code */ |
350 | 367 | ||
diff --git a/drivers/media/dvb/frontends/dvb-pll.h b/drivers/media/dvb/frontends/dvb-pll.h index 24d4d2e9acd8..f682c09189b3 100644 --- a/drivers/media/dvb/frontends/dvb-pll.h +++ b/drivers/media/dvb/frontends/dvb-pll.h | |||
@@ -39,6 +39,7 @@ extern struct dvb_pll_desc dvb_pll_tded4; | |||
39 | extern struct dvb_pll_desc dvb_pll_tuv1236d; | 39 | extern struct dvb_pll_desc dvb_pll_tuv1236d; |
40 | extern struct dvb_pll_desc dvb_pll_tdhu2; | 40 | extern struct dvb_pll_desc dvb_pll_tdhu2; |
41 | extern struct dvb_pll_desc dvb_pll_tbmv30111in; | 41 | extern struct dvb_pll_desc dvb_pll_tbmv30111in; |
42 | extern struct dvb_pll_desc dvb_pll_philips_sd1878_tda8261; | ||
42 | 43 | ||
43 | int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, | 44 | int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf, |
44 | u32 freq, int bandwidth); | 45 | u32 freq, int bandwidth); |
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c index 9d214643b87a..4691ac54bc1d 100644 --- a/drivers/media/dvb/frontends/lgdt330x.c +++ b/drivers/media/dvb/frontends/lgdt330x.c | |||
@@ -714,10 +714,9 @@ struct dvb_frontend* lgdt330x_attach(const struct lgdt330x_config* config, | |||
714 | u8 buf[1]; | 714 | u8 buf[1]; |
715 | 715 | ||
716 | /* Allocate memory for the internal state */ | 716 | /* Allocate memory for the internal state */ |
717 | state = (struct lgdt330x_state*) kmalloc(sizeof(struct lgdt330x_state), GFP_KERNEL); | 717 | state = kzalloc(sizeof(struct lgdt330x_state), GFP_KERNEL); |
718 | if (state == NULL) | 718 | if (state == NULL) |
719 | goto error; | 719 | goto error; |
720 | memset(state,0,sizeof(*state)); | ||
721 | 720 | ||
722 | /* Setup the state */ | 721 | /* Setup the state */ |
723 | state->config = config; | 722 | state->config = config; |
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c index f0c610f2c2df..aaaec909ddf8 100644 --- a/drivers/media/dvb/frontends/mt352.c +++ b/drivers/media/dvb/frontends/mt352.c | |||
@@ -535,9 +535,8 @@ struct dvb_frontend* mt352_attach(const struct mt352_config* config, | |||
535 | struct mt352_state* state = NULL; | 535 | struct mt352_state* state = NULL; |
536 | 536 | ||
537 | /* allocate memory for the internal state */ | 537 | /* allocate memory for the internal state */ |
538 | state = kmalloc(sizeof(struct mt352_state), GFP_KERNEL); | 538 | state = kzalloc(sizeof(struct mt352_state), GFP_KERNEL); |
539 | if (state == NULL) goto error; | 539 | if (state == NULL) goto error; |
540 | memset(state,0,sizeof(*state)); | ||
541 | 540 | ||
542 | /* setup the state */ | 541 | /* setup the state */ |
543 | state->i2c = i2c; | 542 | state->i2c = i2c; |
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index aeafef46e3eb..78d2b93d35b9 100644 --- a/drivers/media/dvb/frontends/nxt200x.c +++ b/drivers/media/dvb/frontends/nxt200x.c | |||
@@ -1110,10 +1110,9 @@ struct dvb_frontend* nxt200x_attach(const struct nxt200x_config* config, | |||
1110 | u8 buf [] = {0,0,0,0,0}; | 1110 | u8 buf [] = {0,0,0,0,0}; |
1111 | 1111 | ||
1112 | /* allocate memory for the internal state */ | 1112 | /* allocate memory for the internal state */ |
1113 | state = (struct nxt200x_state*) kmalloc(sizeof(struct nxt200x_state), GFP_KERNEL); | 1113 | state = kzalloc(sizeof(struct nxt200x_state), GFP_KERNEL); |
1114 | if (state == NULL) | 1114 | if (state == NULL) |
1115 | goto error; | 1115 | goto error; |
1116 | memset(state,0,sizeof(*state)); | ||
1117 | 1116 | ||
1118 | /* setup the state */ | 1117 | /* setup the state */ |
1119 | state->config = config; | 1118 | state->config = config; |