]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helper: Add atomic_mode_set helper callback
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 22 Jul 2016 10:20:47 +0000 (12:20 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 8 Aug 2016 09:44:20 +0000 (11:44 +0200)
commit1b2fd21761a0627c807a0ea291911d0f66e89da5
treee20bb66a430a886d04f22f2218e875024efb97aa
parent030321699df7489c89f882baabba463e848f21c0
drm/atomic-helper: Add atomic_mode_set helper callback

Some encoders need more information from crtc and connector state or
connector display info than just the mode during mode setting. This
patch adds an atomic encoder mode setting variant that passes the crtc
state (which contains the modes) and the connector state.

atomic_enable/disable variants that additionally pass crtc and connector
state don't seem to be necessary for any current driver. mode_fixup
already has an atomic equivalent in atomic_check.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_modeset_helper_vtables.h