Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp516899img; Thu, 21 Mar 2019 03:14:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzTBq73/mx8ezx7heHbfHeSAj3P7+2Q0ZcGWsFgMb57am8FkiERKxSBclb1lzAeen3asLX X-Received: by 2002:a17:902:112c:: with SMTP id d41mr2732937pla.177.1553163283841; Thu, 21 Mar 2019 03:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553163283; cv=none; d=google.com; s=arc-20160816; b=I0khMxjoZv+Q5JofGyUSL9ejzvyf8PFsgMG6gkYJloVJVX9xOUxLYJSb0ghPN4NLZl 0AuTeX9tBBFkMOoFFdKMCP6pSICIsKf2Hn+6APs/7u2vxxVfGFakuG/stPT2hvvqrO8u 1P+jKEQZhMvDzp0YDaCU6RezD0ZkmhGk19ZeAKJo+ShIGcuvmzb8mGATrA9P80R/Jjpk MQ97hadcndfizTAxxfB8jWOCdZ8edKy/h5ELmfeb5u1xIDdrUDYvhqxHpEAlRcbEaPt7 4fpppz8va2WPhXhAr7/lyF5YquTcxgM7KEww49FbL/LOJ/Kws1YKAm0YOVlJ0M+qWH7s rf5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qx5PaGs2F67gcfxu/S9vvG20F/ghZVA5YX+VyXUv7rg=; b=a6Twz6HGbrxcosFYZbx8FwckR7MInlhU+UPfkeeS+i5kWJiYioSouucu9HCnZYVpLD +/E18rAKuIARGMMxnLF06DTLlrufa8BJ7HzX4BmqSGGL0MbVG6CibfmLRNzjB+mleLmQ cBtyjUfI6qsjIAGCkB4IOUM9FI1qLwLbdyC61LkSD5uUY7SnGuAEnOJho1aeOE2tw8S2 K11m1PIvI6wiqw8E0jeIxhik7UZ3z+g1Pd/CGF0Pccf5KQw/DHCma8WiXDub0APXoROk pKAxX0m5vKVgB48OVacOU8YjQq88pu1sJ0jRAkveI+SzbqW1qu+viBlZwYyInww5ueoz dKCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si3704999pfn.144.2019.03.21.03.14.26; Thu, 21 Mar 2019 03:14:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727969AbfCUKNk (ORCPT + 99 others); Thu, 21 Mar 2019 06:13:40 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:54535 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbfCUKNj (ORCPT ); Thu, 21 Mar 2019 06:13:39 -0400 X-Originating-IP: 90.88.33.153 Received: from localhost (aaubervilliers-681-1-92-153.w90-88.abo.wanadoo.fr [90.88.33.153]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 5434560003; Thu, 21 Mar 2019 10:13:36 +0000 (UTC) Date: Thu, 21 Mar 2019 11:13:35 +0100 From: Maxime Ripard To: Paul Kocialkowski Cc: Daniel Vetter , David Airlie , Maarten Lankhorst , Sean Paul , Mauro Carvalho Chehab , Sakari Ailus , Hans Verkuil , Laurent Pinchart , Thomas Petazzoni , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [RFC PATCH 03/20] drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp Message-ID: <20190321101335.wws44wdh42jazboq@flea> References: <6e5850afb02cc2851fe3229122fb3cb4869dc108.1553032382.git-series.maxime.ripard@bootlin.com> <2ef894df9d9e79d4a89e745e95c79bbb6a2505e4.camel@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3fgryhrccqk3ctcg" Content-Disposition: inline In-Reply-To: <2ef894df9d9e79d4a89e745e95c79bbb6a2505e4.camel@bootlin.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3fgryhrccqk3ctcg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 20, 2019 at 03:24:26PM +0100, Paul Kocialkowski wrote: > Hi, > > Le mardi 19 mars 2019 =E0 22:57 +0100, Maxime Ripard a =E9crit : > > So far, the drm_format_plane_cpp function was operating on the format's > > fourcc and was doing a lookup to retrieve the drm_format_info structure= and > > return the cpp. > > > > However, this is inefficient since in most cases, we will have the > > drm_format_info pointer already available so we shouldn't have to perfo= rm a > > new lookup. Some drm_fourcc functions also already operate on the > > drm_format_info pointer for that reason, so the API is quite inconsiste= nt > > there. > > Well, it seems that drm_fourcc functions that take a drm_format_info > have a drm_format_info prefix, so having this would be more consistent. > > And given what the helper does, I think it would make good sense to > switch it over to an inline drm_format_info_plane_cpp helper. > > What do you think? That makes total sense, I'll change it. Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --3fgryhrccqk3ctcg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXJNjzwAKCRDj7w1vZxhR xeDxAP9igUy53jj/yNPXFCSDY7e7I/oyTqzXAlWmASCZBvYc8QEAoY9iAzv0Sp6E 4o3AlROC52GmSYBbNWGK0MvLa14chgY= =J/XE -----END PGP SIGNATURE----- --3fgryhrccqk3ctcg--