drm/exynos/vidi: remove encoder_to_vidi helper
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 31 Dec 2018 12:42:22 +0000 (13:42 +0100)
committerAndrzej Hajda <a.hajda@samsung.com>
Wed, 20 Mar 2019 11:48:12 +0000 (12:48 +0100)
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

index 377aae5f76310fda47ed1ea5ce142b3c12f8bb9c..2579462aec704d00b378310ebfce70624f87c378 100644 (file)
@@ -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;