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:
@@ -181,7 +181,7 @@ static const struct drm_simple_display_pipe_funcs hx8357d_pipe_funcs = {
|
||||
};
|
||||
|
||||
static const struct drm_display_mode yx350hv15_mode = {
|
||||
TINYDRM_MODE(320, 480, 60, 75),
|
||||
DRM_SIMPLE_MODE(320, 480, 60, 75),
|
||||
};
|
||||
|
||||
DEFINE_DRM_GEM_CMA_FOPS(hx8357d_fops);
|
||||
|
Reference in New Issue
Block a user