OSDN Git Service

drm/i915: Extract some helpers to compute cdclk register values
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 30 Apr 2021 15:34:40 +0000 (18:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 5 May 2021 18:07:35 +0000 (21:07 +0300)
commitb41df85a9834932370806df189d5997a4891fd88
tree600e5229749db6378a3927569d2b8ed1c8e998fd
parentfcf83a21141eea91d877c1afb6e15ad9d40ae125
drm/i915: Extract some helpers to compute cdclk register values

Extract a few of the switch statements into helper functions to
reduce the pollution in the cdclk programming functions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430153444.29270-2-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c