aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-02-26 12:01:09 +0200
committerJani Nikula <jani.nikula@intel.com>2025-02-27 20:49:04 +0200
commita38a005d95796fb5d5b8c8be325facc75c4708c9 (patch)
tree135106711dd5f9e1e5012d186ece2dc51bbe3e09
parentdrm/i915/pfit: move ilk and i9xx pfit code to intel_pfit.[ch] (diff)
downloadwireguard-linux-a38a005d95796fb5d5b8c8be325facc75c4708c9.tar.xz
wireguard-linux-a38a005d95796fb5d5b8c8be325facc75c4708c9.zip
drm/i915/pfit: fix comment style for moved comments
Adhere to coding style. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/d3bc49cf04473a0be07bab1ad7fd9df1f671307f.1740564009.git.jani.nikula@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_pfit.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_pfit.c b/drivers/gpu/drm/i915/display/intel_pfit.c
index 0a7609020c17..5e4a6ef2ff8d 100644
--- a/drivers/gpu/drm/i915/display/intel_pfit.c
+++ b/drivers/gpu/drm/i915/display/intel_pfit.c
@@ -569,9 +569,9 @@ void ilk_pfit_enable(const struct intel_crtc_state *crtc_state)
if (!crtc_state->pch_pfit.enabled)
return;
- /* Force use of hard-coded filter coefficients
- * as some pre-programmed values are broken,
- * e.g. x201.
+ /*
+ * Force use of hard-coded filter coefficients as some pre-programmed
+ * values are broken, e.g. x201.
*/
if (IS_IVYBRIDGE(dev_priv) || IS_HASWELL(dev_priv))
intel_de_write_fw(dev_priv, PF_CTL(pipe), PF_ENABLE |
@@ -591,8 +591,10 @@ void ilk_pfit_disable(const struct intel_crtc_state *old_crtc_state)
struct drm_i915_private *dev_priv = to_i915(crtc->base.dev);
enum pipe pipe = crtc->pipe;
- /* To avoid upsetting the power well on haswell only disable the pfit if
- * it's in use. The hw state code will make sure we get this right. */
+ /*
+ * To avoid upsetting the power well on haswell only disable the pfit if
+ * it's in use. The hw state code will make sure we get this right.
+ */
if (!old_crtc_state->pch_pfit.enabled)
return;
@@ -657,8 +659,10 @@ void i9xx_pfit_enable(const struct intel_crtc_state *crtc_state)
intel_de_write(display, PFIT_CONTROL(display),
crtc_state->gmch_pfit.control);
- /* Border color in case we don't scale up to the full screen. Black by
- * default, change to something else for debugging. */
+ /*
+ * Border color in case we don't scale up to the full screen. Black by
+ * default, change to something else for debugging.
+ */
intel_de_write(display, BCLRPAT(display, crtc->pipe), 0);
}