aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov7670.c
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/video/ov7670.c
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/video/ov7670.c')
-rw-r--r--drivers/media/video/ov7670.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c
index 3ceb8a6249dd..f8f21ddd9843 100644
--- a/drivers/media/video/ov7670.c
+++ b/drivers/media/video/ov7670.c
@@ -617,7 +617,7 @@ static struct ov7670_win_size {
617 }, 617 },
618}; 618};
619 619
620#define N_WIN_SIZES (sizeof(ov7670_win_sizes)/sizeof(ov7670_win_sizes[0])) 620#define N_WIN_SIZES (ARRAY_SIZE(ov7670_win_sizes))
621 621
622 622
623/* 623/*
@@ -1183,7 +1183,7 @@ static struct ov7670_control {
1183 .query = ov7670_q_hflip, 1183 .query = ov7670_q_hflip,
1184 }, 1184 },
1185}; 1185};
1186#define N_CONTROLS (sizeof(ov7670_controls)/sizeof(ov7670_controls[0])) 1186#define N_CONTROLS (ARRAY_SIZE(ov7670_controls))
1187 1187
1188static struct ov7670_control *ov7670_find_control(__u32 id) 1188static struct ov7670_control *ov7670_find_control(__u32 id)
1189{ 1189{