From patchwork Thu Jun 22 09:21:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 111583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4944348vqr; Thu, 22 Jun 2023 02:51:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ucmmV1aw/rC5Gcp29g19QE/9dEEJTRjDCNWVXNxu6vyxF594nFYE7GAgwgq9tG76jFLWa X-Received: by 2002:a17:902:d489:b0:1b0:113e:1047 with SMTP id c9-20020a170902d48900b001b0113e1047mr14219118plg.62.1687427474662; Thu, 22 Jun 2023 02:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687427474; cv=none; d=google.com; s=arc-20160816; b=zuBBYEKBoct1RLwO3+5+KNkrvDTZ6bd1o8QNzeJX8nQeWt1VC/tDUWyStxeRFkPmIw UzMp9l01uuV1zOYLsU44jy2tKjYxSmjRMzEALyw2XOfR+UetGDy2rylWeX2Kq5laRBXK XYy5UAtckdFyeswXnU9RfM4DfohqjN+b/O2Hq36yQkuTIgAxQkA2o+1V2A/spIABkGPq UE/yN4cJhfayK0zXCa8CXUjBoe3YB/FpTNtIRTnVohCvbRg1nWTMv4X6ABwx50BvRDdO eCjiWwFaycN6SeAulpj7daLG6bRBG4xHQwgE7F7L9uA24nQhdZAXqlIk8CSf6+APMWzM NEVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IIbFGAQ7T6NmqEIWb+++4i5c/49m9CUQgT6AsvUwkTc=; b=aDuQuoVJ/bJuV19NH4vWfqEtDrzfLMXLtQHpIIzgTAim31M/nz6omVtEg6nk6TUGf2 O1WGCP7+yS9zF6sbazicSakE50aO2CO1uvy36c4wmcto1ueGwkHu4JVpwYB9LfFqo7VP ujgpJY2bz+phf/0LQM9cOqGZqn4svk9sbRCYGhoVvyA0c36mqQGFZ8N/rnarRTp5l14f 9/7gD7KBVV+5+XqvRhaEM0VLvt9x4Db/6XQL3dbJaSvDJoVYp0mq01H3pB4WfT/teC97 9ly7uXNA1HO7zHLKiV88/Q03n75Ou9ncx0qwcnr8GJMHfOGmGPmAsRmeC56Ia+hLGzIr 6sVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a170903230300b001b6788a54f4si876111plh.191.2023.06.22.02.51.01; Thu, 22 Jun 2023 02:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232366AbjFVJbM (ORCPT + 99 others); Thu, 22 Jun 2023 05:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232336AbjFVJ3t (ORCPT ); Thu, 22 Jun 2023 05:29:49 -0400 Received: from gauss.telenet-ops.be (gauss.telenet-ops.be [195.130.132.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BFB94C39 for ; Thu, 22 Jun 2023 02:22:46 -0700 (PDT) Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by gauss.telenet-ops.be (Postfix) with ESMTPS id 4QmvzT0070z4x4Cm for ; Thu, 22 Jun 2023 11:22:44 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:991a:a831:ea4b:6058]) by baptiste.telenet-ops.be with bizsmtp id C9Nj2A0091yfRTD019NjqG; Thu, 22 Jun 2023 11:22:44 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qCGWX-000Bwb-SW; Thu, 22 Jun 2023 11:22:43 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qCGWZ-003VxD-Ew; Thu, 22 Jun 2023 11:22:43 +0200 From: Geert Uytterhoeven To: Laurent Pinchart , Kieran Bingham , David Airlie , Daniel Vetter , Thomas Zimmermann , Magnus Damm Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Geert Uytterhoeven Subject: [PATCH 21/39] drm: renesas: shmobile: Use struct videomode in platform data Date: Thu, 22 Jun 2023 11:21:33 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769395951482429503?= X-GMAIL-MSGID: =?utf-8?q?1769395951482429503?= From: Laurent Pinchart Replace the drm_mode_modeinfo field with videomode that includes more signal polarity flags. This simplifies driver handling of panel modes and prepares for DT support. Signed-off-by: Laurent Pinchart [geert: Simplify] Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- Changes compared to Laurent's original: - Rebase, - Fix build, - Remove unneeded {width,height}_mm intermediaries from shmob_drm_connector, - Replace embedded videomode by a const pointer to pdata. --- .../gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 35 ++++++++----------- .../gpu/drm/renesas/shmobile/shmob_drm_crtc.h | 3 ++ include/linux/platform_data/shmob_drm.h | 11 ++---- 3 files changed, 19 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c index 291b3a5014c24f08..5328910ebe09c832 100644 --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c @@ -23,6 +23,8 @@ #include #include +#include