dpi_init_pll(dpi);
- r = dss_mgr_connect(&dpi->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dst->name);
- dss_mgr_disconnect(&dpi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void dpi_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&dpi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static const struct omap_dss_device_ops dpi_ops = {
if (r)
return r;
- r = dss_mgr_connect(&dsi->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dssdev->name);
- dss_mgr_disconnect(&dsi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void dsi_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct dsi_data *dsi = to_dsi_data(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&dsi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static const struct omap_dss_device_ops dsi_ops = {
if (r)
return r;
- r = dss_mgr_connect(&hdmi->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dst->name);
- dss_mgr_disconnect(&hdmi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void hdmi_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&hdmi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static int hdmi_read_edid(struct omap_dss_device *dssdev,
if (r)
return r;
- r = dss_mgr_connect(&hdmi->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dst->name);
- dss_mgr_disconnect(&hdmi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void hdmi_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct omap_hdmi *hdmi = dssdev_to_hdmi(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&hdmi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static int hdmi_read_edid(struct omap_dss_device *dssdev,
struct omap_drm_private *priv);
void dss_uninstall_mgr_ops(struct dss_device *dss);
-int dss_mgr_connect(struct omap_dss_device *dssdev,
- struct omap_dss_device *dst);
-void dss_mgr_disconnect(struct omap_dss_device *dssdev,
- struct omap_dss_device *dst);
+int dss_mgr_connect(struct omap_dss_device *dssdev);
+void dss_mgr_disconnect(struct omap_dss_device *dssdev);
void dss_mgr_set_timings(struct omap_dss_device *dssdev,
const struct videomode *vm);
void dss_mgr_set_lcd_config(struct omap_dss_device *dssdev,
}
EXPORT_SYMBOL(dss_uninstall_mgr_ops);
-int dss_mgr_connect(struct omap_dss_device *dssdev, struct omap_dss_device *dst)
+int dss_mgr_connect(struct omap_dss_device *dssdev)
{
return dssdev->dss->mgr_ops->connect(dssdev->dss->mgr_ops_priv,
- dssdev->dispc_channel, dst);
+ dssdev->dispc_channel, dssdev);
}
EXPORT_SYMBOL(dss_mgr_connect);
-void dss_mgr_disconnect(struct omap_dss_device *dssdev,
- struct omap_dss_device *dst)
+void dss_mgr_disconnect(struct omap_dss_device *dssdev)
{
dssdev->dss->mgr_ops->disconnect(dssdev->dss->mgr_ops_priv,
- dssdev->dispc_channel, dst);
+ dssdev->dispc_channel, dssdev);
}
EXPORT_SYMBOL(dss_mgr_disconnect);
if (r)
return r;
- r = dss_mgr_connect(&sdi->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dst->name);
- dss_mgr_disconnect(&sdi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void sdi_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct sdi_device *sdi = dssdev_to_sdi(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&sdi->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static const struct omap_dss_device_ops sdi_ops = {
if (r)
return r;
- r = dss_mgr_connect(&venc->output, dssdev);
+ r = dss_mgr_connect(dssdev);
if (r)
return r;
if (r) {
DSSERR("failed to connect output to new device: %s\n",
dst->name);
- dss_mgr_disconnect(&venc->output, dssdev);
+ dss_mgr_disconnect(dssdev);
return r;
}
static void venc_disconnect(struct omap_dss_device *dssdev,
struct omap_dss_device *dst)
{
- struct venc_device *venc = dssdev_to_venc(dssdev);
-
omapdss_output_unset_device(dssdev);
- dss_mgr_disconnect(&venc->output, dssdev);
+ dss_mgr_disconnect(dssdev);
}
static const struct omap_dss_device_ops venc_ops = {