drm/i915/dsi: Merge intel_dsi_disable/enable into their respective callers
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Feb 2017 09:26:17 +0000 (11:26 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 28 Feb 2017 10:47:02 +0000 (12:47 +0200)
commit5a2e65e742cac8939ab411f38ef1a36ef927181c
tree92e6a440d1a7578a382e0343538f5db802fe1789
parent3870b89a810bc7a3e26ec469ee86077c1de6f9b2
drm/i915/dsi: Merge intel_dsi_disable/enable into their respective callers

intel_dsi_disable/enable only have one caller, merge them into their
respective callers.

Change msleep(2) into usleep_range(2000, 5000) to make checkpatch happy,
otherwise no functional changes.

The main advantage of this change is that it makes it easier to
follow all the steps of the panel enable / disable sequence when
reading the code.

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/d7249612e6d2e9639ecd1d8d106ca37d5794f2a4.1488273823.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi.c