Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp38525img; Tue, 19 Mar 2019 15:06:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC8TWknuQ+Aa+hn+iUoFMtLINXLvgFZ6nWmr48pj56h4bLXn6EnXMapIEQJEWStASwLQXO X-Received: by 2002:a17:902:690a:: with SMTP id j10mr4656249plk.103.1553033194351; Tue, 19 Mar 2019 15:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553033194; cv=none; d=google.com; s=arc-20160816; b=uNDewKQLMhdLuKdVh6hU721qm9zHX9twyNKPFj+2qtBierGif4H2kOaZyiGtsoEyxF G8wNfdTmCFaCnaHYK9Us88CMCbm9OimE4daLugQzmrMJrKkA1mMIKxu4HnyVTDYJ+t6Y Km5UPeoGQgecnJoS9IJ1EGwofnXjOG7WHKnsdn8j5fubCY4EMZDiRbwfDwZ8OrhB/YUA 5Pb4o6vv8BuRrYNwztwsKQOoShxSehiHqjECgse35AF/TY2IAP07K9HkFUh+0+xuard8 k44W6YvI156zNmdi8xdyvAa5TrwXgx8xh8B6CfsQ0MuAnAyyFqm40VvZa65hiCmEXw7Y i2sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VhtVTIAVC7b/uuACNhwpQaxDQC9m/GfyqMB9g3I0myo=; b=FxD4MkrppEH7NVcmMag2RCO0Mqx/hbI90z89AuTLLcapxsjwkP613Jw1ydxXyHrZMC yyE8Lw0YIW5FlnVWlyO/2We4EfQQVsktuYfLqjgfmMGnjomzGfuv6h0s3VwYhFGWZ0Rq P5qsMELc3Hnr95PmyQ5TqDnjj3KLHG1YnaehBOe9AK7NOiWz7fG1nTT2u8C9vwIPSO9D TNVNA5lvL64zCTe/aYw3BxlkBIIifCj7eEkhmVTX/ZWU+ZYSznAwbgoaLRKw5p6+Xy2i 9uU5wHXgyK6albEjIFq6THQIM40mdiaU/o49xDkSw1iDNeON+bEbKLSNfNmL1cTLq8Ck iARg== 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 bh5si134955plb.344.2019.03.19.15.06.18; Tue, 19 Mar 2019 15:06:34 -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 S1727974AbfCSV6w (ORCPT + 99 others); Tue, 19 Mar 2019 17:58:52 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:58579 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727847AbfCSV6O (ORCPT ); Tue, 19 Mar 2019 17:58:14 -0400 X-Originating-IP: 90.89.68.76 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (Authenticated sender: maxime.ripard@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 702C0C0007; Tue, 19 Mar 2019 21:58:10 +0000 (UTC) From: Maxime Ripard To: Daniel Vetter , David Airlie , Maarten Lankhorst , Sean Paul , Maxime Ripard , Mauro Carvalho Chehab Cc: Sakari Ailus , Hans Verkuil , Laurent Pinchart , Thomas Petazzoni , Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [RFC PATCH 16/20] drm/tegra: Convert to generic image format library Date: Tue, 19 Mar 2019 22:57:21 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that we have a generic image format libary, let's convert drivers to use it so that we can deprecate the old DRM one. Signed-off-by: Maxime Ripard --- drivers/gpu/drm/tegra/plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/gpu/drm/tegra/plane.c index d068e8aa3553..e1d82cbdabe8 100644 --- a/drivers/gpu/drm/tegra/plane.c +++ b/drivers/gpu/drm/tegra/plane.c @@ -6,6 +6,8 @@ * published by the Free Software Foundation. */ +#include + #include #include #include @@ -76,7 +78,7 @@ static bool tegra_plane_format_mod_supported(struct drm_plane *plane, uint32_t format, uint64_t modifier) { - const struct drm_format_info *info = drm_format_info(format); + const struct image_format_info *info = image_format_drm_lookup(format); if (modifier == DRM_FORMAT_MOD_LINEAR) return true; -- git-series 0.9.1