drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE()
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 9 Jun 2014 13:39:49 +0000 (14:39 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 9 Jun 2014 23:36:17 +0000 (09:36 +1000)
commitf95aeb17f57c4c98b7f33627e5f51353fd094a93
tree4c821c2597989284072e77f9be08beb03fb4c4f3
parent10d9b4ed3077df3288daff730173939fdf7d3183
drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE()

I cannot see a need to provide a DRM_ version of ARRAY_SIZE(), only used
in a few places. I suspect its usage has been spread by copy & paste
rather than anything else.

Let's just remove it for plain ARRAY_SIZE().

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
20 files changed:
drivers/gpu/drm/armada/armada_drv.c
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/gma500/psb_drv.c
drivers/gpu/drm/i810/i810_dma.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_ioc32.c
drivers/gpu/drm/mga/mga_ioc32.c
drivers/gpu/drm/mga/mga_state.c
drivers/gpu/drm/nouveau/nouveau_ioc32.c
drivers/gpu/drm/qxl/qxl_ioctl.c
drivers/gpu/drm/r128/r128_ioc32.c
drivers/gpu/drm/r128/r128_state.c
drivers/gpu/drm/radeon/radeon_ioc32.c
drivers/gpu/drm/radeon/radeon_kms.c
drivers/gpu/drm/radeon/radeon_state.c
drivers/gpu/drm/savage/savage_bci.c
drivers/gpu/drm/sis/sis_mm.c
drivers/gpu/drm/via/via_dma.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
include/drm/drmP.h