]> git.baikalelectronics.ru Git - kernel.git/commit
drm: omapdrm: Infer the OMAP version from the SoC family
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 5 May 2017 23:57:12 +0000 (02:57 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 07:57:10 +0000 (10:57 +0300)
commita78384f065ad174e77ff6729d2446e2fe1ad42d6
tree4ad2f97e2212a35519435f5645dfdcdc21ec134f
parent2b90b7542664d4ca9b11a759ae26c883d5bda8f9
drm: omapdrm: Infer the OMAP version from the SoC family

The omapdrm exposes the SoC version to userspace through an integer that
contains the OMAP model (e.g. 0x3430 for the OMAP3430). This is an
unfortunate choice of userspace API as it's both conceptually wrong
(userspace nowadays should use /sys/bus/soc/ for that purpose) and
inaccurate as many models with different features are reported with the
same version number.

The only known user of this API is the xomap X11 driver. Even if it has
been deprecated for some time we can't drop the kernel API yet. We can,
however, infer the version number from the SoC family to avoid the need
to pass the version number through platform data.

Do this, which makes the omapdrm platform data not needed anymore, and
ready to be removed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_drv.h