drm/i915/dsi: Add intel_dsi_unprepare() helper
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Feb 2017 09:26:18 +0000 (11:26 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 28 Feb 2017 10:47:03 +0000 (12:47 +0200)
commitc7991ecad6a99664506cf290118ecec985854011
tree091d6ef4d5b7db83285a6a91c4a64a2ff46fb092
parent5a2e65e742cac8939ab411f38ef1a36ef927181c
drm/i915/dsi: Add intel_dsi_unprepare() helper

The enable path has an intel_dsi_prepare() helper which prepares various
registers for the mode-set. Move the code undoing this to a new
intel_dsi_unprepare() helper function for better symmetry between the
enable and disable paths. No functional changes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Bob Paauwe <bob.j.paauwe@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/cc0baaf04ea74a20031b4b5bb128591dcfa78406.1488273823.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi.c