]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/psr: clarify intel_psr_pre_plane_update() conditions
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Feb 2025 14:05:18 +0000 (16:05 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 6 Feb 2025 09:43:29 +0000 (11:43 +0200)
commitaa0a9861bf5157c51cda8191813d1b52374d5c78
tree00e22b90cd1c310cf633b0523fe57a221d38e0e1
parentd0fcbf81fc798d47c2a62d246a4786d11d050310
drm/i915/psr: clarify intel_psr_pre_plane_update() conditions

Make the conditions easier to follow. We don't do anything for
!psr->enabled, so hoist psr->enabled check higher, avoiding all the
checks when !psr->enabled. Stop the bitwise OR abuse on booleans by
removing the temporary variable altogether.

v2: Rebase

Cc: Jouni Högander <jouni.hogander@intel.com>
Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com> # v1
Link: https://patchwork.freedesktop.org/patch/msgid/20250204140518.2971530-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_psr.c