aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/cx24110.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/frontends/cx24110.c')
-rw-r--r--drivers/media/dvb/frontends/cx24110.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
index ae96395217a2..10fc0c8316dd 100644
--- a/drivers/media/dvb/frontends/cx24110.c
+++ b/drivers/media/dvb/frontends/cx24110.c
@@ -254,7 +254,7 @@ static int cx24110_set_symbolrate (struct cx24110_state* state, u32 srate)
254 if (srate<500000) 254 if (srate<500000)
255 srate=500000; 255 srate=500000;
256 256
257 for(i=0;(i<sizeof(bands)/sizeof(bands[0]))&&(srate>bands[i]);i++) 257 for(i = 0; (i < ARRAY_SIZE(bands)) && (srate>bands[i]); i++)
258 ; 258 ;
259 /* first, check which sample rate is appropriate: 45, 60 80 or 90 MHz, 259 /* first, check which sample rate is appropriate: 45, 60 80 or 90 MHz,
260 and set the PLL accordingly (R07[1:0] Fclk, R06[7:4] PLLmult, 260 and set the PLL accordingly (R07[1:0] Fclk, R06[7:4] PLLmult,
@@ -361,7 +361,7 @@ static int cx24110_initfe(struct dvb_frontend* fe)
361 361
362 dprintk("%s: init chip\n", __FUNCTION__); 362 dprintk("%s: init chip\n", __FUNCTION__);
363 363
364 for(i=0;i<sizeof(cx24110_regdata)/sizeof(cx24110_regdata[0]);i++) { 364 for(i = 0; i < ARRAY_SIZE(cx24110_regdata); i++) {
365 cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data); 365 cx24110_writereg(state, cx24110_regdata[i].reg, cx24110_regdata[i].data);
366 }; 366 };
367 367