Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10648969rwd; Thu, 22 Jun 2023 02:56:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50DfpHTlcx9YXGg8Gojgkjq5xhhtAovWmd18VWppLVrWDdE/wBHwTBobl0MTwmsfUe7Cah X-Received: by 2002:a05:6a20:9388:b0:125:213e:8b69 with SMTP id x8-20020a056a20938800b00125213e8b69mr1006723pzh.49.1687427792033; Thu, 22 Jun 2023 02:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687427792; cv=none; d=google.com; s=arc-20160816; b=EDSTZZ2Urq2mva/2UaeTrCIBEnWo4IIZFMNQjaEa0oPTNOGMxKq/GdFWqp+6OM8C4C 9ZiBaXZ3mWTFLigiHttVIPtBOYSOuKvuL6rrBsntxflNyw07WLarFzk8GcnQfnITff8a URGXGBtaOm5bbcZu+wYJSuEe3fMrdRddXeb8/LxCAcqg81bjyUmkDu5hK+/NWofffzRN iCYKikGtQzQXmKR854dZpdGGtQ6A/pl/iqOuo8jZVJtWigIk7ssqFVoO5O6b+MBnI5Gb a+iuY+B0BRqHqg2Ac3D8Nj7QTyqpziTZ+qLDaeIAsUvtyBz3IN4nNiYY0I03SNK301mp QOYg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020aa7950d000000b0063b8f0a6f51si4719595pfp.117.2023.06.22.02.56.20; Thu, 22 Jun 2023 02:56:32 -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 S231206AbjFVJbL (ORCPT + 99 others); Thu, 22 Jun 2023 05:31:11 -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 Content-Transfer-Encoding: 8bit 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 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 --- 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