]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bochs: Implement struct drm_mode_config_funcs.mode_valid
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Feb 2020 15:52:56 +0000 (16:52 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Feb 2020 09:33:58 +0000 (10:33 +0100)
commita5c4ed770b9e7e73287b9e7ec99e73358520a688
tree3c2849eacbd30421261fa6bbaea9bf5f829c5610
parented21d6c74f6f43f53e8123e5c1a82fc5d04a3172
drm/bochs: Implement struct drm_mode_config_funcs.mode_valid

The implementation of struct drm_mode_config_funcs.mode_valid verifies
that enough video memory is available for a given display mode. This
replaces similar functionality in bochs_connector_mode_valid().

v2:
* remove bochs_connector_mode_valid(), which now serves no purpose

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200203155258.9346-3-tzimmermann@suse.de
drivers/gpu/drm/bochs/bochs_kms.c