diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-06-05 05:20:56 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-06-05 05:20:56 -0300 |
commit | 59ceda70b6355498b5e7d77209cbcf39e2c32721 (patch) | |
tree | 02843d39734ceb23a1942aac15d471be48f34cab /linux/drivers/media/dvb/frontends | |
parent | 24174e21e72f42c7480e136c96addf3280d1669f (diff) | |
download | mediapointer-dvb-s2-59ceda70b6355498b5e7d77209cbcf39e2c32721.tar.gz mediapointer-dvb-s2-59ceda70b6355498b5e7d77209cbcf39e2c32721.tar.bz2 |
Replace C code with calls to ARRAY_SIZE macro.
From: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10023.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10023.c b/linux/drivers/media/dvb/frontends/tda10023.c index 5452526ff..017748593 100644 --- a/linux/drivers/media/dvb/frontends/tda10023.c +++ b/linux/drivers/media/dvb/frontends/tda10023.c @@ -482,7 +482,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; |