drm/udl: Test pixel limit in mode-config's mode-valid function
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Oct 2022 09:53:41 +0000 (11:53 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 7 Oct 2022 11:45:17 +0000 (13:45 +0200)
commitc020f66013b6136a68a3a4ad74cc7af3b3310586
treeb08dcd264a41d5216944cf0f7b5006212e8b3130
parent59a811faa74f4326fe2d48d2b334c0ee95922628
drm/udl: Test pixel limit in mode-config's mode-valid function

The sku_pixel_limit is a per-device property, similar to the amount
of available video memory. Move the respective mode-valid test from
the connector to the mode-config structure.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221006095355.23579-3-tzimmermann@suse.de
drivers/gpu/drm/udl/udl_connector.c
drivers/gpu/drm/udl/udl_modeset.c