drm/i915: Add HAS_DISPLAY() and use it
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 30 Nov 2018 23:20:47 +0000 (15:20 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 3 Dec 2018 22:55:39 +0000 (14:55 -0800)
commite1bf094b3c7514934168dcb69f18b65aacb5a953
treefd8e655c0df5570871894783fd805f4bb1e6e8f6
parentae9e7ced4f7b0e9d1646844b4713d6b60e9b3f65
drm/i915: Add HAS_DISPLAY() and use it

Right now it is decided if GEN has display by checking the num_pipes,
so lets make it explicit and use a macro.

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181130232048.14216-1-jose.souza@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_device_info.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_fbdev.c
drivers/gpu/drm/i915/intel_i2c.c