From patchwork Mon Aug 3 19:09:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 6932791 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 96B7D9F358 for ; Mon, 3 Aug 2015 19:10:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D55F9205D1 for ; Mon, 3 Aug 2015 19:10:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0B8E620656 for ; Mon, 3 Aug 2015 19:10:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754891AbbHCTK0 (ORCPT ); Mon, 3 Aug 2015 15:10:26 -0400 Received: from mail-yk0-f175.google.com ([209.85.160.175]:36427 "EHLO mail-yk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754870AbbHCTKZ (ORCPT ); Mon, 3 Aug 2015 15:10:25 -0400 Received: by ykeo23 with SMTP id o23so21935575yke.3 for ; Mon, 03 Aug 2015 12:10:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Nj8zkfEQ4rKc6XIrBG0V4oCUuq7+R4o03lhMatSQbaA=; b=S8DQSoY9PidQBHTe4o9KUY8up6MPiSkpDXzdm04ABnRuRmrjQ3AUpbhWmKG8/uELaK JFAEX3soYPhtj0RVp73nMbHWWrJzLVHxg4sDDQYO2e3J9Te6ANZ0/AULlkycy7HpuBao ga+ziFJ9BQT2U3XsrJUqf35Ko7UhMJYIZ9bot+rp2szN1MTGj+HltrCWX+uHVSLbNqKp dZlytkWmE4tMAFJg6+i2vKmILeL2IacZEjMtzfXuwDLaBXzIoK78PsF9v81/C7O1FDi5 BtZg44l876+sv5nEvHa9dB4AdiNesqmGZf1+EbMTixh/mKbqhO5TRnKXFtpetKME0KKy tjrg== X-Received: by 10.129.33.135 with SMTP id h129mr22252278ywh.27.1438629024787; Mon, 03 Aug 2015 12:10:24 -0700 (PDT) Received: from jade.localdomain ([187.64.235.140]) by smtp.gmail.com with ESMTPSA id i130sm15006226ywb.21.2015.08.03.12.10.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 12:10:24 -0700 (PDT) From: Gustavo Padovan To: linux-samsung-soc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org, inki.dae@samsung.com, jy0922.shim@samsung.com, tjakobi@math.uni-bielefeld.de, Gustavo Padovan Subject: [PATCH 08/11] drm/exynos: remove exynos_encoder's .commit() op Date: Mon, 3 Aug 2015 16:09:55 -0300 Message-Id: <1438628998-3435-9-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1438628998-3435-1-git-send-email-gustavo@padovan.org> References: <1438628998-3435-1-git-send-email-gustavo@padovan.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan .commit() is not used anymore, Exynos encoders now follow the .enable()/.disable() semantics from drm atomic core, so remove this callback. Signed-off-by: Gustavo Padovan --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- drivers/gpu/drm/exynos/exynos_drm_encoder.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 4931193..76ed6a1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -87,7 +87,6 @@ struct exynos_drm_plane { * would be called by encoder->mode_set(). * @enable: display device on. * @disable: display device off. - * @commit: apply changes to hw */ struct exynos_drm_encoder; struct exynos_drm_encoder_ops { @@ -100,7 +99,6 @@ struct exynos_drm_encoder_ops { struct drm_display_mode *mode); void (*enable)(struct exynos_drm_encoder *encoder); void (*disable)(struct exynos_drm_encoder *encoder); - void (*commit)(struct exynos_drm_encoder *encoder); }; /* diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c index b9a1c93..ce7b97e 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c +++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c @@ -56,9 +56,6 @@ static void exynos_drm_encoder_enable(struct drm_encoder *encoder) if (exynos_encoder->ops->enable) exynos_encoder->ops->enable(exynos_encoder); - - if (exynos_encoder->ops->commit) - exynos_encoder->ops->commit(exynos_encoder); } static void exynos_drm_encoder_disable(struct drm_encoder *encoder)