diff mbox series

[v3,RESEND,13/24] drm/exynos/vidi: remove encoder_to_vidi helper

Message ID 20190325071349.22600-14-a.hajda@samsung.com (mailing list archive)
State New, archived
Headers show
Series [v3,RESEND,01/24] arm64: dts: exynos: configure GSCALER related clocks | expand

Commit Message

Andrzej Hajda March 25, 2019, 7:13 a.m. UTC
It can be replaced by recently introduced to_vidi helper.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_vidi.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 377aae5f7631..2579462aec70 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -52,11 +52,6 @@  struct vidi_context {
 	struct mutex			lock;
 };
 
-static inline struct vidi_context *encoder_to_vidi(struct drm_encoder *e)
-{
-	return container_of(e, struct vidi_context, encoder);
-}
-
 #define to_vidi(ptr) container_of(ptr, struct vidi_context, ptr)
 
 static const char fake_edid_info[] = {
@@ -331,7 +326,7 @@  static const struct drm_connector_helper_funcs vidi_connector_helper_funcs = {
 
 static int vidi_create_connector(struct drm_encoder *encoder)
 {
-	struct vidi_context *ctx = encoder_to_vidi(encoder);
+	struct vidi_context *ctx = to_vidi(encoder);
 	struct drm_connector *connector = &ctx->connector;
 	int ret;