[PATCH v3 RESEND 13/24] drm/exynos/vidi: remove encoder_to_vidi helper
Andrzej Hajda
a.hajda at samsung.com
Mon Mar 25 07:13:38 UTC 2019
It can be replaced by recently introduced to_vidi helper.
Signed-off-by: Andrzej Hajda <a.hajda at samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_vidi.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
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;
--
2.17.1
More information about the dri-devel
mailing list