Skip to content

Commit

Permalink
drm/bridge: analogix_dp: Add analogix_dp_psr_supported
Browse files Browse the repository at this point in the history
So users know whether PSR should be enabled or not.

Cc: Yakir Yang <ykk@rock-chips.com>

Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1474639600-30090-1-git-send-email-tomeu.vizoso@collabora.com
  • Loading branch information
Tomeu Vizoso authored and Daniel Vetter committed Oct 4, 2016
1 parent 7406489 commit 561b069
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp)
return 0;
}

int analogix_dp_psr_supported(struct device *dev)
{
struct analogix_dp_device *dp = dev_get_drvdata(dev);

return dp->psr_support;
}
EXPORT_SYMBOL_GPL(analogix_dp_psr_supported);

int analogix_dp_enable_psr(struct device *dev)
{
struct analogix_dp_device *dp = dev_get_drvdata(dev);
Expand Down
1 change: 1 addition & 0 deletions include/drm/bridge/analogix_dp.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ struct analogix_dp_plat_data {
struct drm_connector *);
};

int analogix_dp_psr_supported(struct device *dev);
int analogix_dp_enable_psr(struct device *dev);
int analogix_dp_disable_psr(struct device *dev);

Expand Down

0 comments on commit 561b069

Please sign in to comment.