diff options
author | John Keeping <john@metanate.com> | 2017-02-24 15:55:02 +0300 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-03-01 22:48:57 +0300 |
commit | 2b0c4b70b1a4f6ad1810b62057b0d8208c3c65a8 (patch) | |
tree | cc6b2519379eadc32feb2d0bc8b0adf1f0c8c58d /drivers/gpu/drm/rockchip | |
parent | 4413697141d6f08f9924afaee9dacc4de164fe92 (diff) | |
download | linux-2b0c4b70b1a4f6ad1810b62057b0d8208c3c65a8.tar.xz |
drm/rockchip: dw-mipi-dsi: use positive check for N{H, V}SYNC
This matches other drivers.
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-20-john@metanate.com
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index ccf818d5c7ac..60dfb5666a25 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c @@ -791,9 +791,9 @@ static void dw_mipi_dsi_dpi_config(struct dw_mipi_dsi *dsi, break; } - if (!(mode->flags & DRM_MODE_FLAG_PVSYNC)) + if (mode->flags & DRM_MODE_FLAG_NVSYNC) val |= VSYNC_ACTIVE_LOW; - if (!(mode->flags & DRM_MODE_FLAG_PHSYNC)) + if (mode->flags & DRM_MODE_FLAG_NHSYNC) val |= HSYNC_ACTIVE_LOW; dsi_write(dsi, DSI_DPI_VCID, DPI_VID(dsi->channel)); |