drm: probe_helper: Hide ugly ifdef
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Tue, 19 Apr 2016 17:40:37 +0000 (14:40 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Apr 2016 11:35:14 +0000 (13:35 +0200)
commitba34d58c5e86c27accb3133fa991cfb6c848c58e
tree445c2b3439a7a801f682b55fb7a1d313ad3a0b01
parentd63c25e4245aaf9507bf9484b58910bd89c76ef3
drm: probe_helper: Hide ugly ifdef

Push the ifdef to the drm_edid.h and create a stub, for the
DRM_LOAD_EDID_FIRMWARE=n case. This removes some clutter in
the code, making it more readable.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1461087638-16959-1-git-send-email-ezequiel@vanguardiasur.com.ar
drivers/gpu/drm/drm_probe_helper.c
include/drm/drm_edid.h