drm/bridge: analogix: Don't return -EINVAL when panel doesn't support PSR
authorzain wang <wzz@rock-chips.com>
Wed, 7 Dec 2016 00:57:33 +0000 (08:57 +0800)
committerArchit Taneja <architt@codeaurora.org>
Wed, 7 Dec 2016 02:57:36 +0000 (08:27 +0530)
commit8f34a548718ebb4becb4f829800552c48284ce9e
treea30083c32edebb6e64690e06d3f581c6e5eef943
parentdb444e1344ddad60bc125717bb0bf3ebbb4c79c7
drm/bridge: analogix: Don't return -EINVAL when panel doesn't support PSR

We will ignored PSR setting if panel not support it. So, in this case,
we should return from analogix_dp_enable/disable_psr() without any
error code. Let's retrun 0 instead of -EINVAL when panel not support PSR
in analogix_dp_enable/disable_psr().

Signed-off-by: zain wang <wzz@rock-chips.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1481072253-8917-1-git-send-email-wzz@rock-chips.com
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c