drm/i915: Extract _cnl_ddi_{enable,disable}_clock()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Feb 2021 21:46:30 +0000 (23:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 16 Feb 2021 12:36:14 +0000 (14:36 +0200)
commit9c6a5c35470b576cc9d8fd1da1eee09f5014b1fd
tree0e277338a9a5189c00ae30c8d164aef56c73148e
parentf67a008e02e5751296300f9e7aa1028afc4a4964
drm/i915: Extract _cnl_ddi_{enable,disable}_clock()

All the DPCLKA_CFGCR handling follows a common pattern. Let's
extract that to a small helper that just takes a few parameters
each caller can customize.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205214634.19341-12-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c