Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8311d570 authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Dave Airlie
Browse files

drm: Use ARRAY_SIZE macro when appropriate



Use ARRAY_SIZE macro already defined in kernel.h

Signed-off-by: default avatarAhmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent f54d1e40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ static struct drm_proc_list {
#endif
};

#define DRM_PROC_ENTRIES (sizeof(drm_proc_list)/sizeof(drm_proc_list[0]))
#define DRM_PROC_ENTRIES ARRAY_SIZE(drm_proc_list)

/**
 * Initialize the DRI proc filesystem for a device.