summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-08-27 16:23:30 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-09-02 12:16:44 +0300
commit42a8ca4cb4a48ddbf40e8edb291425e76bcdc230 (patch)
tree069454782a294001079bd0d257c11824b57b7d51 /drivers/gpu/drm/i915/i915_debugfs.c
parent79e50a4f7228e5f27d2e9785fad5509d1392a0d3 (diff)
downloadlinux-42a8ca4cb4a48ddbf40e8edb291425e76bcdc230.tar.xz
drm/i915: add yesno utility function
Add a common function to return "yes" or "no" string based on the argument, and drop the local versions of it. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 624024c288aa..2f1b693d7162 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -46,11 +46,6 @@ enum {
PINNED_LIST,
};
-static const char *yesno(int v)
-{
- return v ? "yes" : "no";
-}
-
/* As the drm_debugfs_init() routines are called before dev->dev_private is
* allocated we need to hook into the minor for release. */
static int