drm: replace open-coded ARRAY_SIZE with macro