drm/i915/fbdev: Move intel_fb_initial_config() to fbdev helper
authorNoralf Trønnes <noralf@tronnes.org>
Sun, 7 Apr 2019 16:52:34 +0000 (18:52 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Thu, 11 Apr 2019 14:15:28 +0000 (16:15 +0200)
commit09ded8af57bcef7287b8242087d3e7556380de62
treea703d75cbdf59eb7dc768ec0be8249a2ba9880f7
parente33898a20744de9c98cbb7d38506734ece824cb4
drm/i915/fbdev: Move intel_fb_initial_config() to fbdev helper

It is generic code and having it in the helper will let other drivers
benefit from it.

One change was necessary assuming this to be true:
INTEL_INFO(dev_priv)->num_pipes == dev->mode_config.num_crtc

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190407165243.54043-4-noralf@tronnes.org
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_fbdev.c
include/drm/drm_fb_helper.h