drm/omap: remove legacy DSS device operations
All DSS devices have been converted to bridge API, so the device operations are always NULL. This removes the device ops function pointers and all code using it. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201215104657.802264-42-tomi.valkeinen@ti.com
This commit is contained in:
committed by
Tomi Valkeinen
parent
af1110cb6f
commit
9be5bab37d
@ -161,8 +161,6 @@ int omapdss_device_connect(struct dss_device *dss,
|
||||
struct omap_dss_device *src,
|
||||
struct omap_dss_device *dst)
|
||||
{
|
||||
int ret;
|
||||
|
||||
dev_dbg(&dss->pdev->dev, "connect(%s, %s)\n",
|
||||
src ? dev_name(src->dev) : "NULL",
|
||||
dst ? dev_name(dst->dev) : "NULL");
|
||||
@ -181,14 +179,6 @@ int omapdss_device_connect(struct dss_device *dss,
|
||||
|
||||
dst->dss = dss;
|
||||
|
||||
if (dst->ops && dst->ops->connect) {
|
||||
ret = dst->ops->connect(src, dst);
|
||||
if (ret < 0) {
|
||||
dst->dss = NULL;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_connect);
|
||||
@ -212,66 +202,10 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
|
||||
return;
|
||||
}
|
||||
|
||||
WARN_ON(dst->state != OMAP_DSS_DISPLAY_DISABLED);
|
||||
|
||||
if (dst->ops && dst->ops->disconnect)
|
||||
dst->ops->disconnect(src, dst);
|
||||
dst->dss = NULL;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_disconnect);
|
||||
|
||||
void omapdss_device_pre_enable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
omapdss_device_pre_enable(dssdev->next);
|
||||
|
||||
if (dssdev->ops && dssdev->ops->pre_enable)
|
||||
dssdev->ops->pre_enable(dssdev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_pre_enable);
|
||||
|
||||
void omapdss_device_enable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
if (dssdev->ops && dssdev->ops->enable)
|
||||
dssdev->ops->enable(dssdev);
|
||||
|
||||
omapdss_device_enable(dssdev->next);
|
||||
|
||||
dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_enable);
|
||||
|
||||
void omapdss_device_disable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
omapdss_device_disable(dssdev->next);
|
||||
|
||||
if (dssdev->ops && dssdev->ops->disable)
|
||||
dssdev->ops->disable(dssdev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_disable);
|
||||
|
||||
void omapdss_device_post_disable(struct omap_dss_device *dssdev)
|
||||
{
|
||||
if (!dssdev)
|
||||
return;
|
||||
|
||||
if (dssdev->ops && dssdev->ops->post_disable)
|
||||
dssdev->ops->post_disable(dssdev);
|
||||
|
||||
omapdss_device_post_disable(dssdev->next);
|
||||
|
||||
dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(omapdss_device_post_disable);
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Components Handling
|
||||
*/
|
||||
|
Reference in New Issue
Block a user