drm/i915/icl: Unify disable and enable phy clock gating functions
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 20 Sep 2019 20:58:09 +0000 (13:58 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 23 Sep 2019 17:38:15 +0000 (10:38 -0700)
commit8aaf5cbda8f1684ffb7027724f67da086f46a0f4
treeb53f0e317914b42b0b77f7088c68e11dbf24149a
parentf15a4eb18264a6eba30fb32f21ae76b010a691d5
drm/i915/icl: Unify disable and enable phy clock gating functions

Adding a enable parameters allow us to share most of the code between
enable and disable functions.

v3:
Renamed icl_phy_clock_gating() to icl_phy_set_clock_gating()

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/20190920205810.211048-6-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c