drm/i915: add onoff utility function
authorJani Nikula <jani.nikula@intel.com>
Thu, 14 Jan 2016 10:53:34 +0000 (12:53 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Jan 2016 13:00:12 +0000 (15:00 +0200)
commit87ad321287ae99a8932af1a19ac99849284a62bd
treef316621bce0c89c3e0b566dff03372e6c6a33744
parent603525d72219f8aee13f2c029b91c7c1435a01a7
drm/i915: add onoff utility function

Add a common function to return "on" or "off" string based on the
argument, and drop the local versions of it.

This is the onoff version of

commit 42a8ca4cb4a48ddbf40e8edb291425e76bcdc230
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Thu Aug 27 16:23:30 2015 +0300

    drm/i915: add yesno utility function

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1452768814-29787-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_pm.c