mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
drm_modes: add videomode helpers
Add conversion from videomode to drm_display_mode Signed-off-by: Steffen Trumtrar <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Acked-by: Thierry Reding <[email protected]> Tested-by: Thierry Reding <[email protected]> Tested-by: Philipp Zabel <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Tested-by: Afzal Mohammed <[email protected]> Tested-by: Rob Clark <[email protected]> Tested-by: Leela Krishna Amudala <[email protected]>
This commit is contained in:
parent
790890444f
commit
ebc64e4538
2 changed files with 42 additions and 0 deletions
|
|
@ -85,6 +85,8 @@ struct module;
|
|||
struct drm_file;
|
||||
struct drm_device;
|
||||
|
||||
struct videomode;
|
||||
|
||||
#include <drm/drm_os_linux.h>
|
||||
#include <drm/drm_hashtab.h>
|
||||
#include <drm/drm_mm.h>
|
||||
|
|
@ -1456,6 +1458,9 @@ extern struct drm_display_mode *
|
|||
drm_mode_create_from_cmdline_mode(struct drm_device *dev,
|
||||
struct drm_cmdline_mode *cmd);
|
||||
|
||||
extern int drm_display_mode_from_videomode(const struct videomode *vm,
|
||||
struct drm_display_mode *dmode);
|
||||
|
||||
/* Modesetting support */
|
||||
extern void drm_vblank_pre_modeset(struct drm_device *dev, int crtc);
|
||||
extern void drm_vblank_post_modeset(struct drm_device *dev, int crtc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue