Roundhouse kick replacing the various (sizeof(foo)/sizeof(foo)) with
the ARRAY_SIZE macro from dix.h when possible. A semantic patch for
coccinelle has been used first. Additionally, a few macros have been
inlined as they had only one or two users.
Signed-off-by: Daniel Martin <firstname.lastname@example.org>
Reviewed-by: Adam Jackson <email@example.com>