drm/modes: Add initializer macro DRM_MODE_INIT()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 5 Sep 2022 14:16:47 +0000 (16:16 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 12 Sep 2022 07:14:59 +0000 (09:14 +0200)
commit385d1bba890f9b94322ca7fdfa778311f1ea0813
tree6cc1a125f62713c631dc5606e5b7b0ea8d7bb7e0
parent216b9bbaeaea96b7f05c220f61855d174be972d8
drm/modes: Add initializer macro DRM_MODE_INIT()

The macro DRM_MODE_INIT() initializes an instance of
struct drm_display_mode with typical parameters. Convert simpledrm
and also update the macro DRM_SIMPLE_MODE().

v3:
* fix DRM_MODE_INIT() docs (kernel test robot)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220905141648.22013-4-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c
include/drm/drm_modes.h