Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3945055yba; Wed, 17 Apr 2019 00:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2TTcY7qHwLI9uBkSaZWe2Y1yuopFZh7QmXHrreMG7QVrzFm2lAH0oCnIZ0ZSMHAadBcUL X-Received: by 2002:a17:902:7589:: with SMTP id j9mr62171073pll.287.1555487979468; Wed, 17 Apr 2019 00:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555487979; cv=none; d=google.com; s=arc-20160816; b=uUWe7MiAq2cbmXOqErq0Sxq+/C1P3+guPVH+lB56Ifr9MoTTRN/jlJY9P7WaP4F+TX 5lSZC9IgJtgKcAliwdw+8iyDpfJr9phG80H7msKvpiUaV7ov83oXLWrJcNLZ7HC55BrB xo6q3KxS+nUZ9ZnxhSX0ECDMWuT4jVo6VaNFyJwFEZFnjzycFdxbgeAf5IQg/x7bQevY AB1HEwkVfkl+nnLG0abC4J1ynpipV/Vh/Zk6FYW/CG7fT3I5T9ZZUxDHQypadTA9Rmhx /tDTHpeoCmjDGSSfKTgSPX5y0butANC0NZWzaFI+O7OqDzA/ZxOLp6BBqRzJvG/qbPG5 MD3A== 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=0sJGHrZLFJatkict+ZYA3dGrQZQhykqxvlKQKRQNp93+kU5WW0RXKnqA6X0hhMreL8 85zvw134WqsrkkCEzOL2avzKDY0EAtUUCEmLw+b2T2M9jORIZnXzDhZpgWHhZ2kRDY02 zAij8iO1DLQCcEyHwptXFCy6T6VrtCMYizZRLTUBjjZeZLxzAYz2OpNIdz42Z5gmRqw6 rOJIpKhNUYl5yDrUpZMy3vo/Q5G7ubyjCTVy/09Oz/QXBxC/TUE2ytS8j+twtLA9Icc1 JCODT6s8kybXVZS9bgFASojH+dSE22naEE9VAMK0DOtpkaGyrL7AYykaSpW/G0799V7R zhzg== 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 q1si50499626pfh.125.2019.04.17.00.59.23; Wed, 17 Apr 2019 00:59:39 -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 S1731279AbfDQHzQ (ORCPT + 99 others); Wed, 17 Apr 2019 03:55:16 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:39465 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731143AbfDQHzK (ORCPT ); Wed, 17 Apr 2019 03:55:10 -0400 X-Originating-IP: 90.88.160.238 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 989C24000E; Wed, 17 Apr 2019 07:55:07 +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: [PATCH 16/20] drm/tegra: Convert to generic image format library Date: Wed, 17 Apr 2019 09:54:42 +0200 Message-Id: <2c0108409106279077610f8fc9e43fe976de2054.1555487650.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.21.0 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