aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov7670.c
diff options
context:
space:
mode:
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{