mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240109100517.1947414-3-jouni.hogander@intel.com
This commit is contained in:
parent
a480dd59fe
commit
78d49aaa36
|
|
@ -173,6 +173,12 @@
|
|||
* 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)
|
||||
{
|
||||
if (intel_encoder_is_dp(encoder) || encoder->type == INTEL_OUTPUT_DP_MST)
|
||||
|
|
|
|||
|
|
@ -21,12 +21,6 @@ struct intel_encoder;
|
|||
struct intel_plane;
|
||||
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);
|
||||
void intel_psr_init_dpcd(struct intel_dp *intel_dp);
|
||||
void intel_psr_pre_plane_update(struct intel_atomic_state *state,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user