drm/i915/display: Remove some redundancy around CAN_PSR()
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 9 Feb 2021 18:14:38 +0000 (10:14 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 22 Feb 2021 14:28:04 +0000 (06:28 -0800)
commit3816139c8a4fe5e1fb901b51e94b98822a6e4108
tree1f5d75bda8e17fb0dbb3844e249d5aab805ec107
parent774ab4ff15c020f5b38b45958ee22193d06a17d7
drm/i915/display: Remove some redundancy around CAN_PSR()

If source_support is set the platform supports PSR so no need to check
it again at every CAN_PSR().

Also removing the intel_dp_is_edp() calls, if sink_support is set
the sink connected is for sure a eDP panel.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209181439.215104-3-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_psr.c