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

Commit 42a8ca4c authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter
Browse files

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: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 79e50a4f
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,11 @@
	unlikely(__ret_warn_on);					\
})

static inline const char *yesno(bool v)
{
	return v ? "yes" : "no";
}

enum pipe {
	INVALID_PIPE = -1,
	PIPE_A = 0,
+0 −5
Original line number Diff line number Diff line
@@ -30,11 +30,6 @@
#include <generated/utsrelease.h>
#include "i915_drv.h"

static const char *yesno(int v)
{
	return v ? "yes" : "no";
}

static const char *ring_str(int ring)
{
	switch (ring) {