]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/i915/wm: Club initialized variables of same type together
authorSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 3 Dec 2024 08:47:06 +0000 (14:17 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 5 Dec 2024 03:34:44 +0000 (09:04 +0530)
Refactor program_dpkgc function so that all initialized variables
of same type are clubbed together.

--v2
-Modify commit message to reflect what is being done in patch [Mitul]

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203084706.2126189-6-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/skl_watermark.c

index 4c032b1758e7738bdb3641bf5a4f3814039cf283..d93f6786db0ed3e767f0e3eabe0d8a0e8f6e6dcd 100644 (file)
@@ -2862,9 +2862,9 @@ intel_program_dpkgc_latency(struct intel_atomic_state *state)
        struct intel_crtc *crtc;
        struct intel_crtc_state *new_crtc_state;
        u32 latency = LNL_PKG_C_LATENCY_MASK;
+       u32 added_wake_time = 0;
        u32 max_linetime = 0;
        u32 clear, val;
-       u32 added_wake_time = 0;
        bool fixed_refresh_rate = false;
        int i;