]> git.baikalelectronics.ru Git - kernel.git/commit
drm: omapdrm: venc: Allocate the venc private data structure dynamically
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 13 Feb 2018 12:00:48 +0000 (14:00 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commitf4890f7f3ae5bd28b99c6cf200b9d9837675b1a1
tree78c14263b14b082b6059a59863b0648164224dde
parent54fb8348d8a6190300fcab8b8ef6e9d1d14e327c
drm: omapdrm: venc: Allocate the venc private data structure dynamically

The venc private data structure is currently stored as a global
variable. While no platform with multiple VENC encoders currently exists
nor is planned, this doesn't comply with the kernel device model and
should thus be fixed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/gpu/drm/omapdrm/dss/venc.c