drm/connector: Allow creation of margin props alone
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 6 Dec 2018 14:24:37 +0000 (15:24 +0100)
committerpopcornmix <popcornmix@gmail.com>
Tue, 23 Jul 2019 18:05:50 +0000 (19:05 +0100)
commita8e5cf30380dc8c74d9272bcd74bde3c8863fe0e
tree7a8ba4eea2dface6dca37a6def116a20cf34f5f5
parentabdc0a0310dc620ac64448515e10a2b0ca10308c
drm/connector: Allow creation of margin props alone

Commit 6c4f52dca36f5e3e2354c30591d38e92f4657ed9 upstream.

TV margins properties can only be added as part of the SDTV TV
connector properties creation, but we might need those props for HDMI
TVs too, so let's move the margins props creation in a separate
function and expose it to drivers.

We also add an helper to attach margins props to a connector.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181206142439.10441-4-boris.brezillon@bootlin.com
drivers/gpu/drm/drm_connector.c
include/drm/drm_connector.h