Skip to contentSkip to conversation

drivers/media/video/hexium_gemini.c: ARRAY_SIZE()

PATCH New Andi Drebes 1 participant 1 message Jul 27, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/media/video/hexium_gemini.c: ARRAY_SIZE()

This patch replaces an array size calculation done using sizeof with an invocation of the ARRAY_SIZE macro.

Please CC me for any comments.

Tested by compilation on an i386 box using "allyesconfig". Diffed against Linus' git-tree.

---

drivers/media/video/hexium_gemini.c +1 -1
index c7fed34..fa37097 100644
@@ -512,7 +512,7 @@ static struct saa7146_ext_vv vv_data = {
 	.inputs = HEXIUM_INPUTS,
 	.capabilities = 0,
 	.stds = &hexium_standards[0],
-	.num_stds = sizeof(hexium_standards) / sizeof(struct saa7146_standard),
+	.num_stds = ARRAY_SIZE(hexium_standards),
 	.std_callback = &std_callback,
 	.ioctls = &ioctls[0],
 	.ioctl = hexium_ioctl,