drivers/media/video/hexium_gemini.c: ARRAY_SIZE()
Subsystems (2)
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.
Signed-off-by Andi Drebes <[email protected]>
---
drivers/media/video/hexium_gemini.c +1 -1
@@ -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,