Commit c1dfe721 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen
Browse files

drm/omap: dss: Move and rename omap_dss_(get|put)_device()



The functions operate on any omap_dss_device, move them from display.c
to base.c. While at it rename them to match the naming of the other
functions operating on struct omap_dss_device.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 67822ae1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ static int tvc_connect(struct omap_dss_device *dssdev)

	r = omapdss_device_connect(src, dssdev);
	if (r) {
		omap_dss_put_device(src);
		omapdss_device_put(src);
		return r;
	}

@@ -68,7 +68,7 @@ static void tvc_disconnect(struct omap_dss_device *dssdev)

	omapdss_device_disconnect(src, dssdev);

	omap_dss_put_device(src);
	omapdss_device_put(src);
}

static int tvc_enable(struct omap_dss_device *dssdev)
+2 −2
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ static int dvic_connect(struct omap_dss_device *dssdev)

	r = omapdss_device_connect(src, dssdev);
	if (r) {
		omap_dss_put_device(src);
		omapdss_device_put(src);
		return r;
	}

@@ -82,7 +82,7 @@ static void dvic_disconnect(struct omap_dss_device *dssdev)

	omapdss_device_disconnect(src, dssdev);

	omap_dss_put_device(src);
	omapdss_device_put(src);
}

static int dvic_enable(struct omap_dss_device *dssdev)
+2 −2
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ static int hdmic_connect(struct omap_dss_device *dssdev)

	r = omapdss_device_connect(src, dssdev);
	if (r) {
		omap_dss_put_device(src);
		omapdss_device_put(src);
		return r;
	}

@@ -78,7 +78,7 @@ static void hdmic_disconnect(struct omap_dss_device *dssdev)

	omapdss_device_disconnect(src, dssdev);

	omap_dss_put_device(src);
	omapdss_device_put(src);
}

static int hdmic_enable(struct omap_dss_device *dssdev)
+2 −2
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ static int opa362_connect(struct omap_dss_device *dssdev,

	r = omapdss_device_connect(src, dssdev);
	if (r) {
		omap_dss_put_device(src);
		omapdss_device_put(src);
		return r;
	}

@@ -60,7 +60,7 @@ static void opa362_disconnect(struct omap_dss_device *dssdev,

	omapdss_device_disconnect(src, &ddata->dssdev);

	omap_dss_put_device(src);
	omapdss_device_put(src);
}

static int opa362_enable(struct omap_dss_device *dssdev)
+2 −2
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ static int tfp410_connect(struct omap_dss_device *dssdev,

	r = omapdss_device_connect(src, dssdev);
	if (r) {
		omap_dss_put_device(src);
		omapdss_device_put(src);
		return r;
	}

@@ -56,7 +56,7 @@ static void tfp410_disconnect(struct omap_dss_device *dssdev,

	omapdss_device_disconnect(src, &ddata->dssdev);

	omap_dss_put_device(src);
	omapdss_device_put(src);
}

static int tfp410_enable(struct omap_dss_device *dssdev)
Loading