]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make i830 .get_cdclk() assignment less confusing
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 14 Jul 2020 15:26:25 +0000 (18:26 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 17 Aug 2020 20:15:38 +0000 (16:15 -0400)
commitd0878b1309b55f93ab82e206291208fae7aee212
tree8f905dcc3a068357b49b57123a2bb63d07b2dc60
parent5baf047cf807dfd3e6e2e640250485ccd5d94cb6
drm/i915: Make i830 .get_cdclk() assignment less confusing

Explicitly check for i830 when assigning the .get_cdclk() vfunc,
and then deal with the case of not having assigned the vfunc
separately. Less confusing, and gets rid of the checkpatch complaint
about using {} on one branch but not the others.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200714152626.380-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c