drm/modes: Add DRM_SIMPLE_MODE()
This adds a helper macro to specify modes that only contain info about resolution. v2: Actually set the width and height (Ilia Mirkin) Cc: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190210131039.52664-5-noralf@tronnes.org
This commit is contained in:
@@ -145,7 +145,7 @@ static const struct drm_simple_display_pipe_funcs mi0283qt_pipe_funcs = {
|
||||
};
|
||||
|
||||
static const struct drm_display_mode mi0283qt_mode = {
|
||||
TINYDRM_MODE(320, 240, 58, 43),
|
||||
DRM_SIMPLE_MODE(320, 240, 58, 43),
|
||||
};
|
||||
|
||||
DEFINE_DRM_GEM_CMA_FOPS(mi0283qt_fops);
|
||||
|
Reference in New Issue
Block a user