drm/ingenic: Add support for private objects
authorPaul Cercueil <paul@crapouillou.net>
Tue, 26 Oct 2021 18:12:36 +0000 (19:12 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Fri, 29 Oct 2021 20:29:48 +0000 (21:29 +0100)
commit8040ca086eb2f4709a75bb3ad469d7697f2d2450
tree9ec45c7aa46b487925954201057c57b8b3dd1d84
parent1bdb542da736e299a3fb291e5905a14dc955b938
drm/ingenic: Add support for private objects

Until now, the ingenic-drm as well as the ingenic-ipu drivers used to
put state-specific information in their respective private structure.

Add boilerplate code to support private objects in the two drivers, so
that state-specific information can be put in the state-specific private
structure.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20211026181240.213806-3-paul@crapouillou.net
Tested-by: Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Christophe Branchereau <cbranchereau@gmail.com>
drivers/gpu/drm/ingenic/ingenic-drm-drv.c
drivers/gpu/drm/ingenic/ingenic-ipu.c