aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-06-05 04:20:56 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-07-18 13:23:52 -0400
commit0c71bf1c3065e80cc3ab91293829169bdeda2c42 (patch)
treed38b375f6d8cb7cb5acc8eb80bb93539b6fb2909 /drivers/media/dvb
parente0099e9edabd855bf83d3f57b1843f0b06bfb19d (diff)
V4L/DVB (5739): Replace C code with calls to ARRAY_SIZE macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/tda10023.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda10023.c b/drivers/media/dvb/frontends/tda10023.c
index da796e784be3..4bb06f97938b 100644
--- a/drivers/media/dvb/frontends/tda10023.c
+++ b/drivers/media/dvb/frontends/tda10023.c
@@ -478,7 +478,7 @@ struct dvb_frontend* tda10023_attach(const struct tda1002x_config* config,
478 state->i2c = i2c; 478 state->i2c = i2c;
479 memcpy(&state->frontend.ops, &tda10023_ops, sizeof(struct dvb_frontend_ops)); 479 memcpy(&state->frontend.ops, &tda10023_ops, sizeof(struct dvb_frontend_ops));
480 state->pwm = pwm; 480 state->pwm = pwm;
481 for (i=0; i < sizeof(tda10023_inittab)/sizeof(*tda10023_inittab);i+=3) { 481 for (i=0; i < ARRAY_SIZE(tda10023_inittab);i+=3) {
482 if (tda10023_inittab[i] == 0x00) { 482 if (tda10023_inittab[i] == 0x00) {
483 state->reg0 = tda10023_inittab[i+2]; 483 state->reg0 = tda10023_inittab[i+2];
484 break; 484 break;