drm: Adding drm helper function drm_plane_from_index().
authorChandra Konduru <chandra.konduru@intel.com>
Fri, 10 Apr 2015 00:36:21 +0000 (17:36 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Apr 2015 06:56:21 +0000 (08:56 +0200)
commitf81338a52a82009863b0dc9d597fe1000d1caff6
tree3c2b72230131843b2a4b244fa5c8fb60dc3acadd
parent595e1eeb26d3fcf2e39b494f067ebb5eb3c77e08
drm: Adding drm helper function drm_plane_from_index().

Adding drm helper function to return plane pointer from index where
index is a returned by drm_plane_index.

v2:
-avoided nested loop by adding loop count (Daniel)

v3:
-updated patch header prefix to 'drm' (Matt)

v4:
-fixed a kerneldoc issue (kbuild-internal)

Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Chandra Konduru <chandra.konduru@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h