]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cma: add debugfs helpers
authorRob Clark <robdclark@gmail.com>
Mon, 10 Dec 2012 16:46:43 +0000 (10:46 -0600)
committerRob Clark <robdclark@gmail.com>
Sun, 17 Feb 2013 22:55:42 +0000 (17:55 -0500)
commitb0de0204e34c34d5f38bce699fe5ee0f326fd60a
tree41444767a379449c4e57f60dbee6d3bf2c670904
parentddf51ea19b4618309f2ed7d9c6ff5d32268adeee
drm/cma: add debugfs helpers

Add helper to display fb's which can be used directly in drm_info_list:

static struct drm_info_list foo_debugfs_list[] = {
...
{ "fb",   drm_fb_cma_debugfs_show, 0 },
};

to display information about CMA fb objects, as well as a
drm_gem_cma_describe() which can be used if the driver bothers to keep
a list of CMA GEM objects.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_fb_cma_helper.c
drivers/gpu/drm/drm_gem_cma_helper.c
include/drm/drm_fb_cma_helper.h
include/drm/drm_gem_cma_helper.h