Commit 78d49aaa authored by Jouni Högander's avatar Jouni Högander

drm/i915/psr: CAN_PSR and CAN_PANEL_REPLAY can be now local defines

CAN_PSR and CAN_PANEL_REPLAY are not used outside intel_psr.c anymore. Make
them as intel_psr.c local defines.
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240109100517.1947414-3-jouni.hogander@intel.com
parent a480dd59
...@@ -173,6 +173,12 @@ ...@@ -173,6 +173,12 @@
* irrelevant for normal operation. * irrelevant for normal operation.
*/ */
#define CAN_PSR(intel_dp) ((intel_dp)->psr.sink_support && \
(intel_dp)->psr.source_support)
#define CAN_PANEL_REPLAY(intel_dp) ((intel_dp)->psr.sink_panel_replay_support && \
(intel_dp)->psr.source_panel_replay_support)
bool intel_encoder_can_psr(struct intel_encoder *encoder) bool intel_encoder_can_psr(struct intel_encoder *encoder)
{ {
if (intel_encoder_is_dp(encoder) || encoder->type == INTEL_OUTPUT_DP_MST) if (intel_encoder_is_dp(encoder) || encoder->type == INTEL_OUTPUT_DP_MST)
......
...@@ -21,12 +21,6 @@ struct intel_encoder; ...@@ -21,12 +21,6 @@ struct intel_encoder;
struct intel_plane; struct intel_plane;
struct intel_plane_state; struct intel_plane_state;
#define CAN_PSR(intel_dp) ((intel_dp)->psr.sink_support && \
(intel_dp)->psr.source_support)
#define CAN_PANEL_REPLAY(intel_dp) ((intel_dp)->psr.sink_panel_replay_support && \
(intel_dp)->psr.source_panel_replay_support)
bool intel_encoder_can_psr(struct intel_encoder *encoder); bool intel_encoder_can_psr(struct intel_encoder *encoder);
void intel_psr_init_dpcd(struct intel_dp *intel_dp); void intel_psr_init_dpcd(struct intel_dp *intel_dp);
void intel_psr_pre_plane_update(struct intel_atomic_state *state, void intel_psr_pre_plane_update(struct intel_atomic_state *state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment