]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic-helpers: Saner encoder/crtc callbacks
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Jan 2015 15:36:24 +0000 (16:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Jan 2015 09:02:43 +0000 (10:02 +0100)
commit46129cdd2c3c47480908cb8e2b221f2fd8e2fb61
tree9da7f98114ddc7ca085a169b0a881efc1c80b273
parent16d608e118d9215d21cf90a8baf04d73589fe96b
drm/atomic-helpers: Saner encoder/crtc callbacks

For historical reasons going all the way back to how the Xrandr code
was implemented the semantics of the callbacks used to enable/disable
crtcs and encoders are ... interesting.

But with atomic helpers all that complexity has been binned, with only
a well-defined on/off action left. Unfortunately the names stuck.

Let's fix that by adding enable/disable hooks every, make them the
preferred variant for atomic and update documentations.

Later on we add debug warnings when drivers have deprecated hooks. But
while everything is in-flight with lots of drivers converting to
atomic that's a bit too much - better wait for things to settle a bit
first.

v2: Fix kerneldoc, reported by Wu Fengguang.

Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_crtc_helper.h