summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2015-05-22 13:34:48 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-05-22 16:18:21 +0200
commit934a8a899a7275ed187810fe9a15a93397e88c6b (patch)
treebd85d29fc2eb0bd6a5ec899efea361245e55e35d /include/drm
parent7dec9a9648f825a0698fd875d2834b597f122bd6 (diff)
downloadlinux-934a8a899a7275ed187810fe9a15a93397e88c6b.tar.gz
linux-934a8a899a7275ed187810fe9a15a93397e88c6b.tar.bz2
linux-934a8a899a7275ed187810fe9a15a93397e88c6b.zip
drm/mode: Unstatic kernel-userspace mode conversion
Move the drm_display_mode <-> drm_mode_modeinfo conversion functions from drm_crtc.c to drm_modes.c, and make them non-static so that others can use them. Signed-off-by: Daniel Stone <daniels@collabora.com> Tested-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_modes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_modes.h b/include/drm/drm_modes.h
index 0616188c7801..08a8cac9e555 100644
--- a/include/drm/drm_modes.h
+++ b/include/drm/drm_modes.h
@@ -182,6 +182,10 @@ struct drm_cmdline_mode;
struct drm_display_mode *drm_mode_create(struct drm_device *dev);
void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode);
+void drm_mode_convert_to_umode(struct drm_mode_modeinfo *out,
+ const struct drm_display_mode *in);
+int drm_mode_convert_umode(struct drm_display_mode *out,
+ const struct drm_mode_modeinfo *in);
void drm_mode_probed_add(struct drm_connector *connector, struct drm_display_mode *mode);
void drm_mode_debug_printmodeline(const struct drm_display_mode *mode);