aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/nxt2002.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@linuxtv.org>2005-05-17 00:54:31 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-17 10:59:30 -0400
commitb8742700f13163ffa00cddce2a3c940b9ab2ab5a (patch)
treeff82ac83508dc63d0dec63a3479df3b966018b34 /drivers/media/dvb/frontends/nxt2002.c
parent591ad98db3be2cd596ac5e0cfba7b164c3bdfb52 (diff)
[PATCH] dvb: remove unnecessary casts in frontends
remove unnecessary casts in frontends (Kenneth Aafloy) Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/nxt2002.c')
-rw-r--r--drivers/media/dvb/frontends/nxt2002.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/dvb/frontends/nxt2002.c b/drivers/media/dvb/frontends/nxt2002.c
index 4743aa17406e..8805b0f5f619 100644
--- a/drivers/media/dvb/frontends/nxt2002.c
+++ b/drivers/media/dvb/frontends/nxt2002.c
@@ -241,7 +241,7 @@ static void nxt2002_agc_reset(struct nxt2002_state* state)
241static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) 241static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware *fw)
242{ 242{
243 243
244 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 244 struct nxt2002_state* state = fe->demodulator_priv;
245 u8 buf[256],written = 0,chunkpos = 0; 245 u8 buf[256],written = 0,chunkpos = 0;
246 u16 rambase,position,crc = 0; 246 u16 rambase,position,crc = 0;
247 247
@@ -309,7 +309,7 @@ static int nxt2002_load_firmware (struct dvb_frontend* fe, const struct firmware
309static int nxt2002_setup_frontend_parameters (struct dvb_frontend* fe, 309static int nxt2002_setup_frontend_parameters (struct dvb_frontend* fe,
310 struct dvb_frontend_parameters *p) 310 struct dvb_frontend_parameters *p)
311{ 311{
312 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 312 struct nxt2002_state* state = fe->demodulator_priv;
313 u32 freq = 0; 313 u32 freq = 0;
314 u16 tunerfreq = 0; 314 u16 tunerfreq = 0;
315 u8 buf[4]; 315 u8 buf[4];
@@ -453,7 +453,7 @@ static int nxt2002_setup_frontend_parameters (struct dvb_frontend* fe,
453 453
454static int nxt2002_read_status(struct dvb_frontend* fe, fe_status_t* status) 454static int nxt2002_read_status(struct dvb_frontend* fe, fe_status_t* status)
455{ 455{
456 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 456 struct nxt2002_state* state = fe->demodulator_priv;
457 u8 lock; 457 u8 lock;
458 i2c_readbytes(state,0x31,&lock,1); 458 i2c_readbytes(state,0x31,&lock,1);
459 459
@@ -470,7 +470,7 @@ static int nxt2002_read_status(struct dvb_frontend* fe, fe_status_t* status)
470 470
471static int nxt2002_read_ber(struct dvb_frontend* fe, u32* ber) 471static int nxt2002_read_ber(struct dvb_frontend* fe, u32* ber)
472{ 472{
473 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 473 struct nxt2002_state* state = fe->demodulator_priv;
474 u8 b[3]; 474 u8 b[3];
475 475
476 nxt2002_readreg_multibyte(state,0xE6,b,3); 476 nxt2002_readreg_multibyte(state,0xE6,b,3);
@@ -482,7 +482,7 @@ static int nxt2002_read_ber(struct dvb_frontend* fe, u32* ber)
482 482
483static int nxt2002_read_signal_strength(struct dvb_frontend* fe, u16* strength) 483static int nxt2002_read_signal_strength(struct dvb_frontend* fe, u16* strength)
484{ 484{
485 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 485 struct nxt2002_state* state = fe->demodulator_priv;
486 u8 b[2]; 486 u8 b[2];
487 u16 temp = 0; 487 u16 temp = 0;
488 488
@@ -502,7 +502,7 @@ static int nxt2002_read_signal_strength(struct dvb_frontend* fe, u16* strength)
502static int nxt2002_read_snr(struct dvb_frontend* fe, u16* snr) 502static int nxt2002_read_snr(struct dvb_frontend* fe, u16* snr)
503{ 503{
504 504
505 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 505 struct nxt2002_state* state = fe->demodulator_priv;
506 u8 b[2]; 506 u8 b[2];
507 u16 temp = 0, temp2; 507 u16 temp = 0, temp2;
508 u32 snrdb = 0; 508 u32 snrdb = 0;
@@ -536,7 +536,7 @@ static int nxt2002_read_snr(struct dvb_frontend* fe, u16* snr)
536 536
537static int nxt2002_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) 537static int nxt2002_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks)
538{ 538{
539 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 539 struct nxt2002_state* state = fe->demodulator_priv;
540 u8 b[3]; 540 u8 b[3];
541 541
542 nxt2002_readreg_multibyte(state,0xE6,b,3); 542 nxt2002_readreg_multibyte(state,0xE6,b,3);
@@ -552,7 +552,7 @@ static int nxt2002_sleep(struct dvb_frontend* fe)
552 552
553static int nxt2002_init(struct dvb_frontend* fe) 553static int nxt2002_init(struct dvb_frontend* fe)
554{ 554{
555 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 555 struct nxt2002_state* state = fe->demodulator_priv;
556 const struct firmware *fw; 556 const struct firmware *fw;
557 int ret; 557 int ret;
558 u8 buf[2]; 558 u8 buf[2];
@@ -624,7 +624,7 @@ static int nxt2002_get_tune_settings(struct dvb_frontend* fe, struct dvb_fronten
624 624
625static void nxt2002_release(struct dvb_frontend* fe) 625static void nxt2002_release(struct dvb_frontend* fe)
626{ 626{
627 struct nxt2002_state* state = (struct nxt2002_state*) fe->demodulator_priv; 627 struct nxt2002_state* state = fe->demodulator_priv;
628 kfree(state); 628 kfree(state);
629} 629}
630 630
@@ -637,7 +637,7 @@ struct dvb_frontend* nxt2002_attach(const struct nxt2002_config* config,
637 u8 buf [] = {0,0,0,0,0}; 637 u8 buf [] = {0,0,0,0,0};
638 638
639 /* allocate memory for the internal state */ 639 /* allocate memory for the internal state */
640 state = (struct nxt2002_state*) kmalloc(sizeof(struct nxt2002_state), GFP_KERNEL); 640 state = kmalloc(sizeof(struct nxt2002_state), GFP_KERNEL);
641 if (state == NULL) goto error; 641 if (state == NULL) goto error;
642 642
643 /* setup the state */ 643 /* setup the state */