drm: allow property validation for refcnted props
authorRob Clark <robdclark@gmail.com>
Tue, 16 Dec 2014 23:05:29 +0000 (18:05 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 17 Dec 2014 19:23:24 +0000 (20:23 +0100)
commit3843e71f9882c9e2e965cf025f3a7d4de19ce823
tree8d67345e694ee9f2098f463a82f6593d4b2b7672
parent07cc0ef67fa873c8d21e0b626d57753bfd190095
drm: allow property validation for refcnted props

We can already have object properties, which technically can be fb's.
Switch the property validation logic over to a get/put style interface
so it can take a ref to refcnt'd objects, and then drop that ref after
the driver has a chance to take it's own ref.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c