diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-06-05 10:20:56 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 19:23:52 +0200 |
commit | 0c71bf1c3065e80cc3ab91293829169bdeda2c42 (patch) | |
tree | d38b375f6d8cb7cb5acc8eb80bb93539b6fb2909 /drivers/media/dvb/frontends/tda10023.c | |
parent | V4L/DVB (5734): Cx88: kill dev->fw_size (diff) | |
download | linux-0c71bf1c3065e80cc3ab91293829169bdeda2c42.tar.xz linux-0c71bf1c3065e80cc3ab91293829169bdeda2c42.zip |
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/frontends/tda10023.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda10023.c | 2 |
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, state->i2c = i2c; memcpy(&state->frontend.ops, &tda10023_ops, sizeof(struct dvb_frontend_ops)); state->pwm = pwm; - for (i=0; i < sizeof(tda10023_inittab)/sizeof(*tda10023_inittab);i+=3) { + for (i=0; i < ARRAY_SIZE(tda10023_inittab);i+=3) { if (tda10023_inittab[i] == 0x00) { state->reg0 = tda10023_inittab[i+2]; break; |