diff options
author | 2025-02-04 16:05:18 +0200 | |
---|---|---|
committer | 2025-02-06 11:43:29 +0200 | |
commit | aa0a9861bf5157c51cda8191813d1b52374d5c78 (patch) | |
tree | 00e22b90cd1c310cf633b0523fe57a221d38e0e1 /drivers/gpu/drm/i915/display/intel_dp_mst.c | |
parent | drm/i915/backlight: convert to use struct intel_display (diff) | |
download | wireguard-linux-aa0a9861bf5157c51cda8191813d1b52374d5c78.tar.xz wireguard-linux-aa0a9861bf5157c51cda8191813d1b52374d5c78.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions